1
0
Эх сурвалжийг харах

ENH: move the clear to before things are added to the maps

Bill Hoffman 17 жил өмнө
parent
commit
f12ea8bd32

+ 2 - 2
Source/cmake.cxx

@@ -221,6 +221,8 @@ void cmake::InitializeProperties()
 {
 {
   this->Properties.clear();
   this->Properties.clear();
   this->Properties.SetCMakeInstance(this);
   this->Properties.SetCMakeInstance(this);
+  this->AccessedProperties.clear();
+  this->PropertyDefinitions.clear();
 
 
   // initialize properties
   // initialize properties
   cmSourceFile::DefineProperties(this);
   cmSourceFile::DefineProperties(this);
@@ -228,8 +230,6 @@ void cmake::InitializeProperties()
   cmMakefile::DefineProperties(this);
   cmMakefile::DefineProperties(this);
   cmTest::DefineProperties(this);
   cmTest::DefineProperties(this);
   cmake::DefineProperties(this);
   cmake::DefineProperties(this);
-  this->AccessedProperties.clear();
-  this->PropertyDefinitions.clear();
 }
 }
 
 
 void cmake::CleanupCommandsAndMacros()
 void cmake::CleanupCommandsAndMacros()