summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBobby D Reynolds <boreynol@microsoft.com>2021-05-18 15:53:12 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-28 16:28:43 (GMT)
commit92c8b83641eae61700d16602e0b60d9c9c6f3b15 (patch)
treec7be5a67c9448123e286497d0492d4c675c82af1
parentd93bfd95f8661d399f71dca3b3a3907101939617 (diff)
downloadCMake-92c8b83641eae61700d16602e0b60d9c9c6f3b15.zip
CMake-92c8b83641eae61700d16602e0b60d9c9c6f3b15.tar.gz
CMake-92c8b83641eae61700d16602e0b60d9c9c6f3b15.tar.bz2
cmNinjaNormalTargetGenerator: Fix "Language" rule variable
Fixes: commit 3bc63e99e4 (Refactor: Prepare Ninja generator for multi-config, 2019-11-14, v3.17.0-rc1~290^2~3)
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 4c33334..03fc0b4 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -368,7 +368,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkRule(bool useResponseFile,
vars.CMTargetType = cmState::GetTargetTypeName(targetType).c_str();
std::string lang = this->TargetLinkLanguage(config);
- vars.Language = config.c_str();
+ vars.Language = lang.c_str();
vars.AIXExports = "$AIX_EXPORTS";
if (this->TargetLinkLanguage(config) == "Swift") {