summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-07 23:50:54 +0200
committerStephen Kelly <steveire@gmail.com>2015-07-18 13:17:24 +0200
commit8e7d3030773aae4b1784383abd6af4e5cec087c6 (patch)
treefa3049521837fbe812877db5dc20d71466252f6f
parent6083ec9a78fd48c66087f9c9e887b9b405c69999 (diff)
downloadcmake-8e7d3030773aae4b1784383abd6af4e5cec087c6.tar.gz
cmMakefile: Simplify setting of current snapshot.
-rw-r--r--Source/cmMakefile.cxx3
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();