mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
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.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user