diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-28 05:50:31 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-28 05:57:21 (GMT) |
commit | 46f6a5f458d7d9ef074820d3e90960af2793bd33 (patch) | |
tree | c95187cef9179a3f105e8d0acb5a9fb59ecfc5e8 /Source/cmState.h | |
parent | 3a041c59495df26c2b7b0ee58069d27a03bd18ff (diff) | |
download | CMake-46f6a5f458d7d9ef074820d3e90960af2793bd33.zip CMake-46f6a5f458d7d9ef074820d3e90960af2793bd33.tar.gz CMake-46f6a5f458d7d9ef074820d3e90960af2793bd33.tar.bz2 |
cmState: Store the Current directories.
Diffstat (limited to 'Source/cmState.h')
-rw-r--r-- | Source/cmState.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmState.h b/Source/cmState.h index f35cbd6..9902db9 100644 --- a/Source/cmState.h +++ b/Source/cmState.h @@ -31,6 +31,11 @@ public: public: Snapshot(cmState* state = 0, PositionType position = 0); + const char* GetCurrentSourceDirectory() const; + void SetCurrentSourceDirectory(std::string const& dir); + const char* GetCurrentBinaryDirectory() const; + void SetCurrentBinaryDirectory(std::string const& dir); + private: friend class cmState; cmState* State; @@ -120,6 +125,8 @@ private: std::map<std::string, cmCommand*> Commands; cmPropertyMap GlobalProperties; cmake* CMakeInstance; + std::vector<std::string> Locations; + std::vector<std::string> OutputLocations; std::vector<PositionType> ParentPositions; std::string SourceDirectory; std::string BinaryDirectory; |