cmTarget: INTERFACE_LIBRARY is always EXCLUDE_FROM_ALL.

This commit is contained in:
Stephen Kelly 2013-12-30 22:12:30 +01:00
parent 3429541e1c
commit 61d138aea2
1 changed files with 2 additions and 1 deletions

View File

@ -1908,7 +1908,8 @@ bool cmGlobalGenerator::IsExcluded(cmLocalGenerator* root,
bool cmGlobalGenerator::IsExcluded(cmLocalGenerator* root,
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.
return true;