| 933 | } |
| 934 | |
| 935 | std::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 | |
| 955 | std::string cmCPackDebGenerator::GetComponentInstallDirNameSuffix( |
| 956 | std::string const& componentName) |
no test coverage detected