mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-13 12:59:55 -05:00
VS: Fix using PCH from source with COMPILE_OPTIONS
If a source file gets per-source flags from both PCH and custom `COMPILE_OPTIONS`, combine them correctly. Fixes: #20694, #20456
This commit is contained in:
@@ -2345,7 +2345,7 @@ void cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
|
||||
pchOptions =
|
||||
this->GeneratorTarget->GetPchUseCompileOptions(config, lang);
|
||||
}
|
||||
customAndPchOptions += pchOptions;
|
||||
customAndPchOptions = cmStrCat(customAndPchOptions, ';', pchOptions);
|
||||
}
|
||||
|
||||
// if we have flags or defines for this config then
|
||||
|
||||
Reference in New Issue
Block a user