diff options
author | Brad King <brad.king@kitware.com> | 2021-10-20 13:02:23 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-10-20 13:02:32 (GMT) |
commit | 3b5e1b53eae726bb4105240143354270df4495e3 (patch) | |
tree | 67aab3cb00d04c7b90972ee927d33659de794ab9 /Source | |
parent | af0230fdadb7b8623055dbf0f64e776aee302ddd (diff) | |
parent | 71f15be957b1a4fc37edbfd70809c759e92227a2 (diff) | |
download | CMake-3b5e1b53eae726bb4105240143354270df4495e3.zip CMake-3b5e1b53eae726bb4105240143354270df4495e3.tar.gz CMake-3b5e1b53eae726bb4105240143354270df4495e3.tar.bz2 |
Merge topic 'vs-unity-individual-pch'
71f15be957 VS: Fix compilation of single source with PCH in Unity Build
7fcc35c676 Tests: Clean RunCMake.UnityBuild cases
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6641
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 1ea0461..b792c03 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2337,7 +2337,8 @@ void cmVisualStudio10TargetGenerator::WriteAllSources(Elem& e0) } } - if (si.Kind == cmGeneratorTarget::SourceKindObjectSource) { + if (si.Kind == cmGeneratorTarget::SourceKindObjectSource || + si.Kind == cmGeneratorTarget::SourceKindUnityBatched) { this->OutputSourceSpecificFlags(e2, si.Source); } if (si.Source->GetPropertyAsBool("SKIP_PRECOMPILE_HEADERS")) { |