diff options
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 49fc0f1..c74cf4d 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -2846,9 +2846,12 @@ void cmMakefile::PopScope() this->DefinitionStack.pop_back(); } -void cmMakefile::RaiseScope(const char *var) +void cmMakefile::RaiseScope(const char *var, const char *varDef) { - const char *varDef = this->GetDefinition(var); + if (!var || !strlen(var)) + { + return; + } // multiple scopes in this directory? if (this->DefinitionStack.size() > 1) |