summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-02 08:39:19 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-24 18:03:29 (GMT)
commit65c434e1b0247a47df763a616d1c8fdb20daba5c (patch)
tree7e22d8034a60cb27302f6fc0b30abc858d193a85 /Source/cmGlobalUnixMakefileGenerator3.cxx
parentbe56feb6184e80eab5ce93b5ab81308452a5559f (diff)
downloadCMake-65c434e1b0247a47df763a616d1c8fdb20daba5c.zip
CMake-65c434e1b0247a47df763a616d1c8fdb20daba5c.tar.gz
CMake-65c434e1b0247a47df763a616d1c8fdb20daba5c.tar.bz2
cmGlobalUnixMakefileGenerator3: Inline an IsExcluded call.
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index b240924..6a13977 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -936,9 +936,17 @@ void cmGlobalUnixMakefileGenerator3::InitializeProgressMarks()
cmGeneratorTarget* gt = this->GetGeneratorTarget(&target);
+ cmLocalGenerator* tlg = gt->GetLocalGenerator();
+
+ if(gt->GetType() == cmTarget::INTERFACE_LIBRARY
+ || gt->Target->GetPropertyAsBool("EXCLUDE_FROM_ALL"))
+ {
+ continue;
+ }
+
// Consider the directory containing the target and all its
// parents until something excludes the target.
- for(cmLocalGenerator* clg = lg; clg && !this->IsExcluded(clg, gt);
+ for(cmLocalGenerator* clg = lg; clg && !this->IsExcluded(clg, tlg);
clg = clg->GetParent())
{
// This local generator includes the target.