diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-11 12:17:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-04-15 15:43:50 (GMT) |
commit | 9b5f80a83c07b4c840b190f4f9057f2cf0fa03d4 (patch) | |
tree | 9ff51eeb0c5055bb81ea9eade551bebdacd2bb3b /Source/cmState.h | |
parent | 0076b5d8340be81057195e70853d33e8fb66c1db (diff) | |
download | CMake-9b5f80a83c07b4c840b190f4f9057f2cf0fa03d4.zip CMake-9b5f80a83c07b4c840b190f4f9057f2cf0fa03d4.tar.gz CMake-9b5f80a83c07b4c840b190f4f9057f2cf0fa03d4.tar.bz2 |
Move global properties to cmState.
Diffstat (limited to 'Source/cmState.h')
-rw-r--r-- | Source/cmState.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmState.h b/Source/cmState.h index a7a17ee..34b2ccf 100644 --- a/Source/cmState.h +++ b/Source/cmState.h @@ -14,6 +14,7 @@ #include "cmStandardIncludes.h" #include "cmPropertyDefinitionMap.h" +#include "cmPropertyMap.h" class cmake; class cmCommand; @@ -88,10 +89,17 @@ public: void RemoveUserDefinedCommands(); std::vector<std::string> GetCommandNames() const; + void SetGlobalProperty(const std::string& prop, const char *value); + void AppendGlobalProperty(const std::string& prop, + const char *value,bool asString=false); + const char *GetGlobalProperty(const std::string& prop); + bool GetGlobalPropertyAsBool(const std::string& prop); + private: std::map<cmProperty::ScopeType, cmPropertyDefinitionMap> PropertyDefinitions; std::vector<std::string> EnabledLanguages; std::map<std::string, cmCommand*> Commands; + cmPropertyMap GlobalProperties; cmake* CMakeInstance; bool IsInTryCompile; }; |