summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-10 13:05:50 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-10 13:36:58 (GMT)
commit6f02034e668a307587c2eb1aa0e342fd17ca103e (patch)
treed39fab25ca989f893e7d15dcc370ddf1d61dc9a8 /Source/cmState.h
parent435a2f3ccb51acf119cfa1671f1c5b344a7d47a0 (diff)
downloadCMake-6f02034e668a307587c2eb1aa0e342fd17ca103e.zip
CMake-6f02034e668a307587c2eb1aa0e342fd17ca103e.tar.gz
CMake-6f02034e668a307587c2eb1aa0e342fd17ca103e.tar.bz2
cmState: Make AddCacheEntry method private.
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 3f0ac77..e71668f 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -223,8 +223,6 @@ public:
void SetCacheEntryValue(std::string const& key, std::string const& value);
void SetCacheValue(std::string const& key, std::string const& value);
- void AddCacheEntry(const std::string& key, const char* value,
- const char* helpString, CacheEntryType type);
void RemoveCacheEntry(std::string const& key);
void SetCacheEntryProperty(std::string const& key,
@@ -305,6 +303,10 @@ public:
bool UseMSYSShell() const;
private:
+ friend class cmake;
+ void AddCacheEntry(const std::string& key, const char* value,
+ const char* helpString, CacheEntryType type);
+
std::map<cmProperty::ScopeType, cmPropertyDefinitionMap> PropertyDefinitions;
std::vector<std::string> EnabledLanguages;
std::map<std::string, cmCommand*> Commands;