summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-12-07 13:51:34 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-12-07 13:51:34 (GMT)
commitf742f7ac1f213531da07e56582b533114fe4b864 (patch)
tree1c41137859680ad31b9ddb223beb0348243a429c /Source/cmGlobalGenerator.cxx
parenta033bafbe01fcb4654f075955e0b3de7be81b0f7 (diff)
downloadCMake-f742f7ac1f213531da07e56582b533114fe4b864.zip
CMake-f742f7ac1f213531da07e56582b533114fe4b864.tar.gz
CMake-f742f7ac1f213531da07e56582b533114fe4b864.tar.bz2
Unity/PCH: Skip more target types when adding automatic sources
Besides INTERFACE_LIBRARY, skip also UTILITY and GLOBAL_TARGET target types
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 96656a5..b7f8990 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1558,7 +1558,9 @@ bool cmGlobalGenerator::AddAutomaticSources()
for (cmLocalGenerator* lg : this->LocalGenerators) {
lg->CreateEvaluationFileOutputs();
for (cmGeneratorTarget* gt : lg->GetGeneratorTargets()) {
- if (gt->GetType() == cmStateEnums::INTERFACE_LIBRARY) {
+ if (gt->GetType() == cmStateEnums::INTERFACE_LIBRARY ||
+ gt->GetType() == cmStateEnums::UTILITY ||
+ gt->GetType() == cmStateEnums::GLOBAL_TARGET) {
continue;
}
lg->AddUnityBuild(gt);