| 123 | } |
| 124 | |
| 125 | void 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 | |
| 140 | void cmScriptGenerator::GenerateScriptActionsPerConfig(std::ostream& os, |
| 141 | Indent indent) |
no test coverage detected