diff options
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 9ecd061..58885d3 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -661,6 +661,10 @@ void cmState::Snapshot::ComputeRelativePathTopBinary() cmState::Snapshot cmState::CreateSnapshot(Snapshot originSnapshot) { + if (!originSnapshot.IsValid()) + { + originSnapshot.State = this; + } PositionType pos = this->ParentPositions.size(); this->ParentPositions.push_back(originSnapshot.Position); this->Locations.resize(this->Locations.size() + 1); |