瀏覽代碼

Merge topic 'truncate-snapshots'

83dc483e cmState: Truncate snapshot data in Initialize.
Brad King 10 年之前
父節點
當前提交
d3b36a90b6
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      Source/cmState.cxx

+ 5 - 2
Source/cmState.cxx

@@ -22,7 +22,6 @@ cmState::cmState(cmake* cm)
   : CMakeInstance(cm),
     IsInTryCompile(false)
 {
-  this->CreateSnapshot(Snapshot());
   this->Initialize();
 }
 
@@ -194,8 +193,12 @@ void cmState::RemoveCacheEntryProperty(std::string const& key,
 void cmState::Initialize()
 {
   this->GlobalProperties.clear();
-
   this->PropertyDefinitions.clear();
+  this->Locations.clear();
+  this->OutputLocations.clear();
+  this->ParentPositions.clear();
+
+  this->CreateSnapshot(Snapshot());
   this->DefineProperty
     ("RULE_LAUNCH_COMPILE", cmProperty::DIRECTORY,
      "", "", true);