summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-12 13:26:54 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-28 05:50:57 (GMT)
commitae6c8a9d68120229a2960a83b51241fdb926700a (patch)
tree89ae365d8ec15b0a2cf1c828a3474a2a44f4de76 /Source/cmState.h
parent86f3cd0f7e0e0a0db210b5ed3f01766624dbc67f (diff)
downloadCMake-ae6c8a9d68120229a2960a83b51241fdb926700a.zip
CMake-ae6c8a9d68120229a2960a83b51241fdb926700a.tar.gz
CMake-ae6c8a9d68120229a2960a83b51241fdb926700a.tar.bz2
cmState: Store the Source and Binary directories.
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 34b2ccf..afacc36 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -95,12 +95,19 @@ public:
const char *GetGlobalProperty(const std::string& prop);
bool GetGlobalPropertyAsBool(const std::string& prop);
+ const char* GetSourceDirectory() const;
+ void SetSourceDirectory(std::string const& sourceDirectory);
+ const char* GetBinaryDirectory() const;
+ void SetBinaryDirectory(std::string const& binaryDirectory);
+
private:
std::map<cmProperty::ScopeType, cmPropertyDefinitionMap> PropertyDefinitions;
std::vector<std::string> EnabledLanguages;
std::map<std::string, cmCommand*> Commands;
cmPropertyMap GlobalProperties;
cmake* CMakeInstance;
+ std::string SourceDirectory;
+ std::string BinaryDirectory;
bool IsInTryCompile;
};