cmState::Snapshot: Provide accessor for the cmState.

This commit is contained in:
Stephen Kelly 2015-06-04 19:33:38 +02:00
parent 1f4ef39603
commit a824415724
2 changed files with 7 additions and 0 deletions

View File

@ -787,3 +787,8 @@ cmState::Snapshot cmState::Snapshot::GetBuildsystemDirectoryParent() const
return snapshot;
}
cmState* cmState::Snapshot::GetState() const
{
return this->State;
}

View File

@ -47,6 +47,8 @@ public:
bool IsValid() const;
Snapshot GetBuildsystemDirectoryParent() const;
cmState* GetState() const;
private:
void ComputeRelativePathTopSource();
void ComputeRelativePathTopBinary();