mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
PCH: Fix compiler errors on iOS multi-arch using Ninja Multi-Config
Fixes: #21401
This commit is contained in:
1 parent
5ef2364053
commit
35432aabda
1 file changed
+4
-2
@@ -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, ">"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user