diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-06-04 17:33:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-06-04 18:20:25 (GMT) |
commit | a82441572493e4f420fca24041b594da9d3c14e6 (patch) | |
tree | 550efdfdbf1438b7bcb288adcc2941f92bdd5a28 | |
parent | 1f4ef39603f3184ac3f78e1f52529947303b1bd1 (diff) | |
download | CMake-a82441572493e4f420fca24041b594da9d3c14e6.zip CMake-a82441572493e4f420fca24041b594da9d3c14e6.tar.gz CMake-a82441572493e4f420fca24041b594da9d3c14e6.tar.bz2 |
cmState::Snapshot: Provide accessor for the cmState.
-rw-r--r-- | Source/cmState.cxx | 5 | ||||
-rw-r--r-- | Source/cmState.h | 2 |
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(); |