diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-07 23:50:54 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-18 13:17:24 +0200 |
commit | 8e7d3030773aae4b1784383abd6af4e5cec087c6 (patch) | |
tree | fa3049521837fbe812877db5dc20d71466252f6f | |
parent | 6083ec9a78fd48c66087f9c9e887b9b405c69999 (diff) | |
download | cmake-8e7d3030773aae4b1784383abd6af4e5cec087c6.tar.gz |
cmMakefile: Simplify setting of current snapshot.
-rw-r--r-- | Source/cmMakefile.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 647caba69b..bd13a17eee 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -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(); |