| 187 | } |
| 188 | |
| 189 | void 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 | |
| 212 | bool cmInstallGenerator::InstallsForConfig(std::string const& config) |
| 213 | { |
nothing calls this directly
no test coverage detected