Browse Source

Move property initialization to cmState.

Stephen Kelly 10 years ago
parent
commit
de722d7d63
2 changed files with 2 additions and 8 deletions
  1. 1 0
      Source/cmState.cxx
  2. 1 8
      Source/cmake.cxx

+ 1 - 0
Source/cmState.cxx

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

+ 1 - 8
Source/cmake.cxx

@@ -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();
 }