mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 02:17:27 +08:00
Move property initialization to cmState.
This commit is contained in:
@@ -22,6 +22,7 @@ cmState::cmState(cmake* cm)
|
||||
: CMakeInstance(cm),
|
||||
IsInTryCompile(false)
|
||||
{
|
||||
this->Initialize();
|
||||
}
|
||||
|
||||
cmState::~cmState()
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user