mirror of
https://github.com/reactos/CMake.git
synced 2025-02-24 22:12:46 +00:00
Move property initialization to cmState.
This commit is contained in:
parent
9b5f80a83c
commit
de722d7d63
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user