summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 5d2464f..6e99c17 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -2999,8 +2999,8 @@ void cmMakefile::RaiseScope(const char *var, const char *varDef)
this->DefinitionStack[this->DefinitionStack.size()-2].erase(var);
}
}
- // otherwise do the parent
- else
+ // otherwise do the parent (if one exists)
+ else if (this->LocalGenerator->GetParent())
{
cmMakefile *parent = this->LocalGenerator->GetParent()->GetMakefile();
if (parent)