summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-10-03 21:53:07 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-10-03 21:53:07 (GMT)
commit18e302a377b4a72fb2aaea461a85da44f9d0f40d (patch)
treee8b3777ea453c156a79ee0782acd7778660795a8
parent2826dc400394f2e39ec3108a7947ffde975851f7 (diff)
downloadCMake-18e302a377b4a72fb2aaea461a85da44f9d0f40d.zip
CMake-18e302a377b4a72fb2aaea461a85da44f9d0f40d.tar.gz
CMake-18e302a377b4a72fb2aaea461a85da44f9d0f40d.tar.bz2
ENH: fix dashbaord error do not exclude root project from itself.
-rw-r--r--Source/cmGlobalGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index e7beb41..3124276 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/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)
{