mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-17 12:11:36 -06:00
cmMakefile: Extract InitializeVarScope method.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user