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

Method GenerateScriptActionsOnce

Source/cmScriptGenerator.cxx:125–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void cmScriptGenerator::GenerateScriptActionsOnce(std::ostream& os,
126 Indent indent)
127{
128 if (this->Configurations.empty()) {
129 // This rule is for all configurations.
130 this->GenerateScriptActions(os, indent);
131 } else {
132 // Generate a per-configuration block.
133 std::string config_test = this->CreateConfigTest(this->Configurations);
134 os << indent << "if(" << config_test << ")\n";
135 this->GenerateScriptActions(os, indent.Next());
136 os << indent << "endif()\n";
137 }
138}
139
140void cmScriptGenerator::GenerateScriptActionsPerConfig(std::ostream& os,
141 Indent indent)

Callers 2

GenerateScriptConfigsMethod · 0.95

Calls 4

GenerateScriptActionsMethod · 0.95
CreateConfigTestMethod · 0.95
emptyMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected