From a82441572493e4f420fca24041b594da9d3c14e6 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 4 Jun 2015 19:33:38 +0200 Subject: [PATCH] cmState::Snapshot: Provide accessor for the cmState. --- Source/cmState.cxx | 5 +++++ Source/cmState.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Source/cmState.cxx b/Source/cmState.cxx index c6fb2998e..3278d56f9 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 60b024f33..39c9b761a 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();