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

Method GetComponentInstallSuffix

Source/CPack/cmCPackDebGenerator.cxx:935–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933}
934
935std::string cmCPackDebGenerator::GetComponentInstallSuffix(
936 std::string const& componentName)
937{
938 if (this->componentPackageMethod == ONE_PACKAGE_PER_COMPONENT) {
939 return componentName;
940 }
941
942 if (this->componentPackageMethod == ONE_PACKAGE) {
943 return { "ALL_COMPONENTS_IN_ONE" };
944 }
945 // We have to find the name of the COMPONENT GROUP
946 // the current COMPONENT belongs to.
947 std::string groupVar =
948 "CPACK_COMPONENT_" + cmSystemTools::UpperCase(componentName) + "_GROUP";
949 if (cmValue v = this->GetOption(groupVar)) {
950 return *v;
951 }
952 return componentName;
953}
954
955std::string cmCPackDebGenerator::GetComponentInstallDirNameSuffix(
956 std::string const& componentName)

Callers 1

Calls 1

GetOptionMethod · 0.45

Tested by

no test coverage detected