cmMakefile: Simplify setting of current snapshot.

This commit is contained in:
Stephen Kelly committed 2015-07-18 13:17:24 +02:00
1 parent 6083ec9a78
commit 8e7d303077
1 file changed
+1 -2
+1 -2
View File
@@ -1714,8 +1714,7 @@ public:
this->GG = mf->GetGlobalGenerator();
this->CurrentMakefile = this->GG->GetCurrentMakefile();
this->Snapshot = this->GG->GetCMakeInstance()->GetCurrentSnapshot();
this->GG->GetCMakeInstance()->SetCurrentSnapshot(
this->GG->GetCMakeInstance()->GetCurrentSnapshot());
this->GG->GetCMakeInstance()->SetCurrentSnapshot(this->Snapshot);
this->GG->SetCurrentMakefile(mf);
#if defined(CMAKE_BUILD_WITH_CMAKE)
this->GG->GetFileLockPool().PushFileScope();