Просмотр исходного кода

Merge topic 'fix_compiler_arg1'

cfbf857b cmRulePlaceholderExpander: Fix CMAKE_<LANG>_COMPILER_ARG1 replacement
Brad King 9 лет назад
Родитель
Сommit
f6b93fbf3a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Source/cmRulePlaceholderExpander.cxx

+ 1 - 1
Source/cmRulePlaceholderExpander.cxx

@@ -212,7 +212,7 @@ std::string cmRulePlaceholderExpander::ExpandRuleVariable(
     std::string ret = outputConverter->ConvertToOutputForExisting(
       this->VariableMappings["CMAKE_" + compIt->second + "_COMPILER"]);
     std::string const& compilerArg1 =
-      this->VariableMappings[compIt->first + "_COMPILER_ARG1"];
+      this->VariableMappings["CMAKE_" + compIt->second + "_COMPILER_ARG1"];
     std::string const& compilerTarget =
       this->VariableMappings["CMAKE_" + compIt->second + "_COMPILER_TARGET"];
     std::string const& compilerOptionTarget =