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

Method CreateComponentTest

Source/cmInstallGenerator.cxx:169–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169std::string cmInstallGenerator::CreateComponentTest(
170 std::string const& component, bool exclude_from_all, bool all_components)
171{
172 if (all_components) {
173 if (exclude_from_all) {
174 return "CMAKE_INSTALL_COMPONENT";
175 }
176 return {};
177 }
178
179 std::string result = "CMAKE_INSTALL_COMPONENT STREQUAL \"";
180 result += component;
181 result += "\"";
182 if (!exclude_from_all) {
183 result += " OR NOT CMAKE_INSTALL_COMPONENT";
184 }
185
186 return result;
187}
188
189void cmInstallGenerator::GenerateScript(std::ostream& os)
190{

Callers 2

GenerateScriptMethod · 0.95
GenerateScriptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected