Browse Source

ENH: fix dashbaord error do not exclude root project from itself.

Bill Hoffman 19 years ago
parent
commit
18e302a377
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/cmGlobalGenerator.cxx

+ 4 - 0
Source/cmGlobalGenerator.cxx

@@ -975,6 +975,10 @@ void cmGlobalGenerator::GetDocumentation(cmDocumentationEntry& entry) const
 bool cmGlobalGenerator::IsExcluded(cmLocalGenerator* root, 
                                    cmLocalGenerator* gen)
 {
+  if(gen == root)
+    {
+    return false;
+    }
   cmLocalGenerator* cur = gen->GetParent();
   while(cur && cur != root)
     {