summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2019-01-15 23:26:02 (GMT)
committerZack Galbreath <zack.galbreath@kitware.com>2019-01-21 16:38:24 (GMT)
commitdc6888573da15cd7ddb9f91b70ef3e6c4e7cae15 (patch)
tree8c2c2ded30bd3e5ca2048dc91fba85d03e13db45 /Source/cmGlobalGenerator.cxx
parentbd3685b6cfac90bb553df0330e1732c066fe7dca (diff)
downloadCMake-dc6888573da15cd7ddb9f91b70ef3e6c4e7cae15.zip
CMake-dc6888573da15cd7ddb9f91b70ef3e6c4e7cae15.tar.gz
CMake-dc6888573da15cd7ddb9f91b70ef3e6c4e7cae15.tar.bz2
Pass EXCLUDE_FROM_ALL from directory to targets
When a target is created it now inherits the EXCLUDE_FROM_ALL property from its directory. This change makes it possible to include a target in "all", even if its directory has been marked as EXCLUDE_FROM_ALL.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 85c2345..1973282 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -2034,17 +2034,10 @@ bool cmGlobalGenerator::IsExcluded(cmLocalGenerator* root,
return this->IsExcluded(rootSnp, snp);
}
-bool cmGlobalGenerator::IsExcluded(cmLocalGenerator* root,
- cmGeneratorTarget* target) const
+bool cmGlobalGenerator::IsExcluded(cmGeneratorTarget* target) const
{
- if (target->GetType() == cmStateEnums::INTERFACE_LIBRARY ||
- target->GetPropertyAsBool("EXCLUDE_FROM_ALL")) {
- // This target is excluded from its directory.
- return true;
- }
- // This target is included in its directory. Check whether the
- // directory is excluded.
- return this->IsExcluded(root, target->GetLocalGenerator());
+ return target->GetType() == cmStateEnums::INTERFACE_LIBRARY ||
+ target->GetPropertyAsBool("EXCLUDE_FROM_ALL");
}
void cmGlobalGenerator::GetEnabledLanguages(