mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 14:08:35 +08:00
cmState: Return end snapshot for GetBuildsystemDirectoryParent.
This is the appropriate snapshot for future use. Existing users of this method are mostly just calling GetDirectory on the result, but the progress tracking of the Makefile generator needs a consistent snapshot to be used, so the end snapshot should be consistently used.
This commit is contained in:
@@ -1067,7 +1067,8 @@ cmState::Snapshot cmState::Snapshot::GetBuildsystemDirectoryParent() const
|
||||
PositionType parentPos = this->Position->DirectoryParent;
|
||||
if (parentPos != this->State->SnapshotData.Root())
|
||||
{
|
||||
snapshot = Snapshot(this->State, parentPos);
|
||||
snapshot = Snapshot(this->State,
|
||||
parentPos->BuildSystemDirectory->DirectoryEnd);
|
||||
}
|
||||
|
||||
return snapshot;
|
||||
|
Reference in New Issue
Block a user