| 2505 | } |
| 2506 | |
| 2507 | void cmLocalGenerator::AddColorDiagnosticsFlags(std::string& flags, |
| 2508 | std::string const& lang) |
| 2509 | { |
| 2510 | cmValue diag = this->Makefile->GetDefinition("CMAKE_COLOR_DIAGNOSTICS"); |
| 2511 | if (diag.IsSet()) { |
| 2512 | std::string colorFlagName; |
| 2513 | if (diag.IsOn()) { |
| 2514 | colorFlagName = |
| 2515 | cmStrCat("CMAKE_", lang, "_COMPILE_OPTIONS_COLOR_DIAGNOSTICS"); |
| 2516 | } else { |
| 2517 | colorFlagName = |
| 2518 | cmStrCat("CMAKE_", lang, "_COMPILE_OPTIONS_COLOR_DIAGNOSTICS_OFF"); |
| 2519 | } |
| 2520 | |
| 2521 | cmList options{ this->Makefile->GetDefinition(colorFlagName) }; |
| 2522 | |
| 2523 | for (auto const& option : options) { |
| 2524 | this->AppendFlagEscape(flags, option); |
| 2525 | } |
| 2526 | } |
| 2527 | } |
| 2528 | |
| 2529 | void cmLocalGenerator::AddConfigVariableFlags(std::string& flags, |
| 2530 | std::string const& var, |
no test coverage detected