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

Method GenerateScript

Source/cmInstallGenerator.cxx:189–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void cmInstallGenerator::GenerateScript(std::ostream& os)
190{
191 // Track indentation.
192 Indent indent;
193
194 std::string component_test = this->CreateComponentTest(
195 this->Component, this->ExcludeFromAll, this->AllComponents);
196
197 // Begin this block of installation.
198 if (!component_test.empty()) {
199 os << indent << "if(" << component_test << ")\n";
200 }
201
202 // Generate the script possibly with per-configuration code.
203 this->GenerateScriptConfigs(os,
204 this->AllComponents ? indent : indent.Next());
205
206 // End this block of installation.
207 if (!component_test.empty()) {
208 os << indent << "endif()\n\n";
209 }
210}
211
212bool cmInstallGenerator::InstallsForConfig(std::string const& config)
213{

Callers

nothing calls this directly

Calls 4

CreateComponentTestMethod · 0.95
emptyMethod · 0.45
GenerateScriptConfigsMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected