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

This commit is contained in:
Bill Hoffman 2006-10-03 17:53:07 -04:00
parent 2826dc4003
commit 18e302a377

View File

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