From 4bbe261cd34818379d06b68d2e153a98cfccfcf5 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 8 Jun 2015 20:04:24 +0200 Subject: cmMakefile: Extract InitializeVarScope method. --- Source/cmMakefile.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v0.12