Browse Source

cmMakefile: Simplify setting of current snapshot.

Stephen Kelly 10 years ago
parent
commit
8e7d303077
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Source/cmMakefile.cxx

+ 1 - 2
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();