summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-08 18:04:24 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-23 15:08:53 (GMT)
commit4bbe261cd34818379d06b68d2e153a98cfccfcf5 (patch)
tree934bf9edd6e63a85dcee724caadb104e7318afd4 /Source/cmMakefile.cxx
parent29c1385675df37146465e820d303de3cdd703e8c (diff)
downloadCMake-4bbe261cd34818379d06b68d2e153a98cfccfcf5.zip
CMake-4bbe261cd34818379d06b68d2e153a98cfccfcf5.tar.gz
CMake-4bbe261cd34818379d06b68d2e153a98cfccfcf5.tar.bz2
cmMakefile: Extract InitializeVarScope method.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 85bc493..5b2499b 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -55,6 +55,11 @@ public:
this->VarStack.push_back(cmDefinitions());
}
+ void InitializeVarScope()
+ {
+ this->PushDefinitions();
+ }
+
void InitializeDefinitions(cmMakefile* parent)
{
this->VarStack.back() =
@@ -141,7 +146,7 @@ cmMakefile::cmMakefile(cmLocalGenerator* localGenerator)
LocalGenerator(localGenerator),
StateSnapshot(localGenerator->GetStateSnapshot())
{
- this->Internal->PushDefinitions();
+ this->Internal->InitializeVarScope();
this->Internal->IsSourceFileTryCompile = false;
// Initialize these first since AddDefaultDefinitions calls AddDefinition