summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-01 17:44:47 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-23 15:08:54 (GMT)
commit1fc645bd9cffb3170743de5c983f2407eeaaa086 (patch)
treeffe0080aecc9c95c6295d050c9b51bc143973786 /Source/cmState.cxx
parent0f070dd3e12408e0e33945c3c8f585268c4b0db9 (diff)
downloadCMake-1fc645bd9cffb3170743de5c983f2407eeaaa086.zip
CMake-1fc645bd9cffb3170743de5c983f2407eeaaa086.tar.gz
CMake-1fc645bd9cffb3170743de5c983f2407eeaaa086.tar.bz2
cmState: Add a Base snapshot type.
For completeness mostly.
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index f425861..c777514 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -736,7 +736,7 @@ cmState::Snapshot cmState::CreateBaseSnapshot()
{
PositionType pos = this->SnapshotData.Extend(this->SnapshotData.Root());
pos->DirectoryParent = this->SnapshotData.Root();
- pos->SnapshotType = BuildsystemDirectoryType;
+ pos->SnapshotType = BaseType;
pos->BuildSystemDirectory =
this->BuildsystemDirectory.Extend(this->BuildsystemDirectory.Root());
pos->ExecutionListFile =
@@ -1019,7 +1019,8 @@ cmState::Snapshot cmState::Snapshot::GetCallStackParent() const
{
++parentPos;
}
- if (parentPos->SnapshotType == cmState::BuildsystemDirectoryType)
+ if (parentPos->SnapshotType == cmState::BuildsystemDirectoryType
+ || parentPos->SnapshotType == cmState::BaseType)
{
return snapshot;
}