summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-12-30 21:12:30 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-01-06 16:25:10 (GMT)
commit61d138aea2df9df2da7fa817b47131c73557fbdb (patch)
tree9d39dbc7269a12e91848b12d3b754a1200f59264 /Source
parent3429541e1c853207ae77ac033f04888e6c84ebf8 (diff)
downloadCMake-61d138aea2df9df2da7fa817b47131c73557fbdb.zip
CMake-61d138aea2df9df2da7fa817b47131c73557fbdb.tar.gz
CMake-61d138aea2df9df2da7fa817b47131c73557fbdb.tar.bz2
cmTarget: INTERFACE_LIBRARY is always EXCLUDE_FROM_ALL.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 0b58a45..0a56771 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -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;