summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-11 12:17:46 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-15 15:43:50 (GMT)
commit9b5f80a83c07b4c840b190f4f9057f2cf0fa03d4 (patch)
tree9ff51eeb0c5055bb81ea9eade551bebdacd2bb3b /Source/cmState.h
parent0076b5d8340be81057195e70853d33e8fb66c1db (diff)
downloadCMake-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.h8
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;
};