From 35432aabdaf16611ef5faf0e3eec29b7847c1026 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Fri, 27 Nov 2020 09:39:02 -0800 Subject: PCH: Fix compiler errors on iOS multi-arch using Ninja Multi-Config Fixes: #21401 --- Source/cmLocalGenerator.cxx | 6 ++++-- 1 file 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("$<$:", useMultiArchPch, ">")); } } -- cgit v0.12