summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-12-07 14:01:06 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-12-07 14:44:31 (GMT)
commit5ae07e7166c6cb7eada2a2d171d216039d977058 (patch)
treef6b4f32c15d1aae24a8b8a2fd6ec105287cf64dd /Source/cmLocalGenerator.cxx
parentf742f7ac1f213531da07e56582b533114fe4b864 (diff)
downloadCMake-5ae07e7166c6cb7eada2a2d171d216039d977058.zip
CMake-5ae07e7166c6cb7eada2a2d171d216039d977058.tar.gz
CMake-5ae07e7166c6cb7eada2a2d171d216039d977058.tar.bz2
Unity: Generic source file handling for all generators
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 923d2a5..b211c34 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2519,12 +2519,7 @@ void cmLocalGenerator::AddUnityBuild(cmGeneratorTarget* target)
for (; begin != end; ++begin) {
cmSourceFile* sf = filtered_sources[begin];
- // Only in Visual Studio generator we keep the source files
- // for explicit processing.
- if (!this->GetGlobalGenerator()->IsMultiConfig() ||
- this->GetGlobalGenerator()->IsXcode()) {
- target->AddSourceFileToUnityBatch(sf->ResolveFullPath());
- }
+ target->AddSourceFileToUnityBatch(sf->ResolveFullPath());
sf->SetProperty("UNITY_SOURCE_FILE", filename.c_str());
if (beforeInclude) {