| 2527 | } |
| 2528 | |
| 2529 | void cmLocalGenerator::AddConfigVariableFlags(std::string& flags, |
| 2530 | std::string const& var, |
| 2531 | std::string const& config) |
| 2532 | { |
| 2533 | // Add the flags from the variable itself. |
| 2534 | this->AppendFlags(flags, this->Makefile->GetSafeDefinition(var)); |
| 2535 | // Add the flags from the build-type specific variable. |
| 2536 | if (!config.empty()) { |
| 2537 | std::string const flagsVar = |
| 2538 | cmStrCat(var, '_', cmSystemTools::UpperCase(config)); |
| 2539 | this->AppendFlags(flags, this->Makefile->GetSafeDefinition(flagsVar)); |
| 2540 | } |
| 2541 | } |
| 2542 | void cmLocalGenerator::AddConfigVariableFlags(std::string& flags, |
| 2543 | std::string const& var, |
| 2544 | cmGeneratorTarget const* target, |
no test coverage detected