Merge topic 'truncate-snapshots'

83dc483e cmState: Truncate snapshot data in Initialize.
This commit is contained in:
Brad King 2015-05-04 11:02:25 -04:00 committed by CMake Topic Stage
commit d3b36a90b6
1 changed files with 5 additions and 2 deletions

View File

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