summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmState.cxx5
-rw-r--r--Source/cmState.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index c6fb299..3278d56 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -787,3 +787,8 @@ cmState::Snapshot cmState::Snapshot::GetBuildsystemDirectoryParent() const
return snapshot;
}
+
+cmState* cmState::Snapshot::GetState() const
+{
+ return this->State;
+}
diff --git a/Source/cmState.h b/Source/cmState.h
index 60b024f..39c9b76 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -47,6 +47,8 @@ public:
bool IsValid() const;
Snapshot GetBuildsystemDirectoryParent() const;
+ cmState* GetState() const;
+
private:
void ComputeRelativePathTopSource();
void ComputeRelativePathTopBinary();