diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 7c74a0fd4..60498efbb 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1619,7 +1619,7 @@ void cmMakefile::AddSubDirectory(const std::string& srcPath, } cmState::Snapshot newSnapshot = this->GetState() - ->CreateSnapshot(this->StateSnapshot); + ->CreateBuildsystemDirectorySnapshot(this->StateSnapshot); // create a new local generator and set its parent cmLocalGenerator *lg2 = this->GetGlobalGenerator() diff --git a/Source/cmState.cxx b/Source/cmState.cxx index eade817a4..87892b4dd 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -672,7 +672,8 @@ cmState::Snapshot cmState::CreateBaseSnapshot() return cmState::Snapshot(this, pos); } -cmState::Snapshot cmState::CreateSnapshot(Snapshot originSnapshot) +cmState::Snapshot +cmState::CreateBuildsystemDirectorySnapshot(Snapshot originSnapshot) { assert(originSnapshot.IsValid()); PositionType pos = this->ParentPositions.size(); diff --git a/Source/cmState.h b/Source/cmState.h index 157bd9056..24e0f7b4c 100644 --- a/Source/cmState.h +++ b/Source/cmState.h @@ -58,7 +58,7 @@ public: }; Snapshot CreateBaseSnapshot(); - Snapshot CreateSnapshot(Snapshot originSnapshot); + Snapshot CreateBuildsystemDirectorySnapshot(Snapshot originSnapshot); enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING, INTERNAL,STATIC, UNINITIALIZED };