Kaynağa Gözat

Merge topic 'fix_compiler_arg1'

cfbf857b cmRulePlaceholderExpander: Fix CMAKE_<LANG>_COMPILER_ARG1 replacement
Brad King 9 yıl önce
ebeveyn
işleme
f6b93fbf3a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 =