| 107 | } |
| 108 | |
| 109 | bool cmScriptGenerator::GeneratesForConfig(std::string const& config) |
| 110 | { |
| 111 | // If this is not a configuration-specific rule then we install. |
| 112 | if (this->Configurations.empty()) { |
| 113 | return true; |
| 114 | } |
| 115 | |
| 116 | // This is a configuration-specific rule. Check if the config |
| 117 | // matches this rule. |
| 118 | std::string config_upper = cmSystemTools::UpperCase(config); |
| 119 | return std::any_of(this->Configurations.begin(), this->Configurations.end(), |
| 120 | [&config_upper](std::string const& cfg) -> bool { |
| 121 | return cmSystemTools::UpperCase(cfg) == config_upper; |
| 122 | }); |
| 123 | } |
| 124 | |
| 125 | void cmScriptGenerator::GenerateScriptActionsOnce(std::ostream& os, |
| 126 | Indent indent) |