summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-17 11:21:02 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-19 20:36:51 (GMT)
commitea7b962be2f157f60f143725948e56b2f9f07042 (patch)
treeb76cc40154964fa0853a6aa71ae814737b034da8 /Source/cmMakefile.cxx
parentc8cb66880c233414b6656ea3d23776f9ba07a4e4 (diff)
downloadCMake-ea7b962be2f157f60f143725948e56b2f9f07042.zip
CMake-ea7b962be2f157f60f143725948e56b2f9f07042.tar.gz
CMake-ea7b962be2f157f60f143725948e56b2f9f07042.tar.bz2
cmMakefile: Raise variable in scope explicitly when needed.
The Get method implicitly pulls a copy of all variables into a local scope. This is not necessary.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 21c9f47..adba110 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -130,7 +130,7 @@ public:
return true;
}
// First localize the definition in the current scope.
- this->GetDefinition(var);
+ cmDefinitions::Raise(var, this->VarStack.rbegin(), this->VarStack.rend());
// Now update the definition in the parent scope.
it->Set(var, varDef);