mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
PCH: Fix compiler errors on iOS multi-arch using Ninja Multi-Config
Fixes: #21401
This commit is contained in:
@@ -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