summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-07-30 16:31:16 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-08-30 18:39:37 (GMT)
commit7786a05c707dc5ffe9fdf7a6b468f56ed18c9e8a (patch)
treee531dbe20f53f840967e4ce00e75e422d942be1f /Source/cmLocalGenerator.cxx
parent1353802af366bd64ba8f730e6f93d4c416107d48 (diff)
downloadCMake-7786a05c707dc5ffe9fdf7a6b468f56ed18c9e8a.zip
CMake-7786a05c707dc5ffe9fdf7a6b468f56ed18c9e8a.tar.gz
CMake-7786a05c707dc5ffe9fdf7a6b468f56ed18c9e8a.tar.bz2
Unity build: Add XCode support
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 6249c28..c85ee2d 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2266,7 +2266,11 @@ void cmLocalGenerator::AddUnityBuild(cmGeneratorTarget* target,
for (; begin != end; ++begin) {
cmSourceFile* sf = filtered_sources[begin];
- if (!this->GetGlobalGenerator()->IsMultiConfig()) {
+ // Only in Visual Studio generator we keep the source files
+ // for explicit processing. For the rest the source files will
+ // not be included in the project.
+ if (!this->GetGlobalGenerator()->IsMultiConfig() ||
+ this->GetGlobalGenerator()->IsXcode()) {
sf->SetProperty("HEADER_FILE_ONLY", "ON");
}
sf->SetProperty("UNITY_SOURCE_FILE", filename.c_str());