mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-08 23:44:00 +03:00
cmRulePlaceholderExpander: Fix CMAKE_<LANG>_COMPILER_ARG1 replacement
Refactoring in commit b29425f7 (cmLocalGenerator: Populate a container
of mappings for replacements, 2016-10-09) broke substitution of this
placeholder by storing the wrong key in the new replacement map.
Use the proper key, `CMAKE_<LANG>_COMPILER_ARG1`.
This commit is contained in:
1 parent
098a18c476
commit
cfbf857b22
1 file changed
+1
-1
@@ -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 =
|
||||
|
||||
Reference in new issue
Block a user