MCPcopy Create free account
hub / github.com/Kitware/CMake / GetComponentInstallDirNameSuffix

Method GetComponentInstallDirNameSuffix

Source/CPack/IFW/cmCPackIFWGenerator.cxx:478–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478std::string cmCPackIFWGenerator::GetComponentInstallDirNameSuffix(
479 std::string const& componentName)
480{
481 std::string const prefix = "packages/";
482 std::string const suffix = "/data";
483
484 if (this->componentPackageMethod == this->ONE_PACKAGE) {
485 return cmStrCat(prefix, this->GetRootPackageName(), suffix);
486 }
487
488 return prefix +
489 this->GetSanitizedDirOrFileName(
490 this->GetComponentPackageName(&this->Components[componentName])) +
491 suffix;
492}
493
494cmCPackComponent* cmCPackIFWGenerator::GetComponent(
495 std::string const& projectName, std::string const& componentName)

Callers

nothing calls this directly

Calls 4

GetRootPackageNameMethod · 0.95
cmStrCatFunction · 0.50

Tested by

no test coverage detected