Move property initialization to cmState.

This commit is contained in:
Stephen Kelly 2015-04-06 19:47:21 +02:00 committed by Brad King
parent 9b5f80a83c
commit de722d7d63
2 changed files with 2 additions and 8 deletions

View File

@ -22,6 +22,7 @@ cmState::cmState(cmake* cm)
: CMakeInstance(cm),
IsInTryCompile(false)
{
this->Initialize();
}
cmState::~cmState()

View File

@ -136,8 +136,6 @@ cmake::cmake()
this->Policies = new cmPolicies();
this->State = new cmState(this);
this->InitializeProperties();
#ifdef __APPLE__
struct rlimit rlp;
if(!getrlimit(RLIMIT_STACK, &rlp))
@ -186,14 +184,9 @@ cmake::~cmake()
delete this->FileComparison;
}
void cmake::InitializeProperties()
{
this->State->Initialize();
}
void cmake::CleanupCommandsAndMacros()
{
this->InitializeProperties();
this->State->Initialize();
this->State->RemoveUserDefinedCommands();
}