diff options
author | Brad King <brad.king@kitware.com> | 2020-05-11 15:56:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-11 15:58:41 (GMT) |
commit | 6b2fb4ffd2e34093e54db0d5e2dac0fa17eacdf0 (patch) | |
tree | 6de7a9a893a6094135dadf7c8b7e5d75f382494a /Source | |
parent | 4c82f309c59d02899145bc25c0e9efc91a6f64ed (diff) | |
download | CMake-6b2fb4ffd2e34093e54db0d5e2dac0fa17eacdf0.zip CMake-6b2fb4ffd2e34093e54db0d5e2dac0fa17eacdf0.tar.gz CMake-6b2fb4ffd2e34093e54db0d5e2dac0fa17eacdf0.tar.bz2 |
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
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index f220ea5..b33cb50 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -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 |