cmTarget: INTERFACE_LIBRARY is always EXCLUDE_FROM_ALL.
This commit is contained in:
parent
3429541e1c
commit
61d138aea2
|
@ -1908,7 +1908,8 @@ bool cmGlobalGenerator::IsExcluded(cmLocalGenerator* root,
|
||||||
bool cmGlobalGenerator::IsExcluded(cmLocalGenerator* root,
|
bool cmGlobalGenerator::IsExcluded(cmLocalGenerator* root,
|
||||||
cmTarget& target)
|
cmTarget& target)
|
||||||
{
|
{
|
||||||
if(target.GetPropertyAsBool("EXCLUDE_FROM_ALL"))
|
if(target.GetType() == cmTarget::INTERFACE_LIBRARY
|
||||||
|
|| target.GetPropertyAsBool("EXCLUDE_FROM_ALL"))
|
||||||
{
|
{
|
||||||
// This target is excluded from its directory.
|
// This target is excluded from its directory.
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue