Move property initialization to cmState.
This commit is contained in:
parent
9b5f80a83c
commit
de722d7d63
|
@ -22,6 +22,7 @@ cmState::cmState(cmake* cm)
|
||||||
: CMakeInstance(cm),
|
: CMakeInstance(cm),
|
||||||
IsInTryCompile(false)
|
IsInTryCompile(false)
|
||||||
{
|
{
|
||||||
|
this->Initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
cmState::~cmState()
|
cmState::~cmState()
|
||||||
|
|
|
@ -136,8 +136,6 @@ cmake::cmake()
|
||||||
this->Policies = new cmPolicies();
|
this->Policies = new cmPolicies();
|
||||||
this->State = new cmState(this);
|
this->State = new cmState(this);
|
||||||
|
|
||||||
this->InitializeProperties();
|
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
struct rlimit rlp;
|
struct rlimit rlp;
|
||||||
if(!getrlimit(RLIMIT_STACK, &rlp))
|
if(!getrlimit(RLIMIT_STACK, &rlp))
|
||||||
|
@ -186,14 +184,9 @@ cmake::~cmake()
|
||||||
delete this->FileComparison;
|
delete this->FileComparison;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmake::InitializeProperties()
|
|
||||||
{
|
|
||||||
this->State->Initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
void cmake::CleanupCommandsAndMacros()
|
void cmake::CleanupCommandsAndMacros()
|
||||||
{
|
{
|
||||||
this->InitializeProperties();
|
this->State->Initialize();
|
||||||
this->State->RemoveUserDefinedCommands();
|
this->State->RemoveUserDefinedCommands();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue