summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2020-11-27 17:39:02 (GMT)
committerBrad King <brad.king@kitware.com>2020-11-30 18:31:51 (GMT)
commit35432aabdaf16611ef5faf0e3eec29b7847c1026 (patch)
tree538b1c763207e4f5424512698d3819f4e705d6ef /Source
parent5ef23640535dfd6543bd81c86282e38122169af6 (diff)
downloadCMake-35432aabdaf16611ef5faf0e3eec29b7847c1026.zip
CMake-35432aabdaf16611ef5faf0e3eec29b7847c1026.tar.gz
CMake-35432aabdaf16611ef5faf0e3eec29b7847c1026.tar.bz2
PCH: Fix compiler errors on iOS multi-arch using Ninja Multi-Config
Fixes: #21401
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 4e6010c..65ddf95 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2506,8 +2506,10 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target)
}
if (!useMultiArchPch.empty()) {
- target->Target->SetProperty(
- cmStrCat(lang, "_COMPILE_OPTIONS_USE_PCH"), useMultiArchPch);
+
+ target->Target->AppendProperty(
+ cmStrCat(lang, "_COMPILE_OPTIONS_USE_PCH"),
+ cmStrCat("$<$<CONFIG:", config, ">:", useMultiArchPch, ">"));
}
}