summaryrefslogtreecommitdiff
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:04 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:04 +0900
commitb1db2e3803ec5e1d47292717af523a6ecfc21b71 (patch)
treec03371e9cdf3b99ab73add1852fab69691bf9cf3 /Source/cmLocalGenerator.cxx
parent8848cb736cd3fff26063eb5b814ec494d65eb8e1 (diff)
downloadcmake-b1db2e3803ec5e1d47292717af523a6ecfc21b71.tar.gz
cmake-b1db2e3803ec5e1d47292717af523a6ecfc21b71.tar.bz2
cmake-b1db2e3803ec5e1d47292717af523a6ecfc21b71.zip
Imported Upstream version 3.17.3upstream/3.17.3
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index c2ec5f57f..f592b7bd7 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2604,9 +2604,11 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target)
std::string pchSourceObj =
reuseTarget->GetPchFileObject(config, lang);
+ const std::string configUpper = cmSystemTools::UpperCase(config);
+
// Link to the pch object file
target->Target->AppendProperty(
- "LINK_FLAGS",
+ cmStrCat("LINK_FLAGS_", configUpper),
cmStrCat(" ", this->ConvertToOutputFormat(pchSourceObj, SHELL)),
true);
}