cmMakefile: Simplify setting of current snapshot.

This commit is contained in:
Stephen Kelly 2015-07-07 23:50:54 +02:00
parent 6083ec9a78
commit 8e7d303077
1 changed files with 1 additions and 2 deletions

View File

@ -1714,8 +1714,7 @@ public:
this->GG = mf->GetGlobalGenerator(); this->GG = mf->GetGlobalGenerator();
this->CurrentMakefile = this->GG->GetCurrentMakefile(); this->CurrentMakefile = this->GG->GetCurrentMakefile();
this->Snapshot = this->GG->GetCMakeInstance()->GetCurrentSnapshot(); this->Snapshot = this->GG->GetCMakeInstance()->GetCurrentSnapshot();
this->GG->GetCMakeInstance()->SetCurrentSnapshot( this->GG->GetCMakeInstance()->SetCurrentSnapshot(this->Snapshot);
this->GG->GetCMakeInstance()->GetCurrentSnapshot());
this->GG->SetCurrentMakefile(mf); this->GG->SetCurrentMakefile(mf);
#if defined(CMAKE_BUILD_WITH_CMAKE) #if defined(CMAKE_BUILD_WITH_CMAKE)
this->GG->GetFileLockPool().PushFileScope(); this->GG->GetFileLockPool().PushFileScope();