diff options
author | Brad King <brad.king@kitware.com> | 2009-03-10 11:10:59 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-03-10 11:10:59 -0400 |
commit | e5e91d617940cab2ea4e8630c6c20cd09794b3a9 (patch) | |
tree | 07799700331300e0e2e2a4ffdef98f5040f20736 /Source/cmCacheManager.cxx | |
parent | ca9fb4826f89722a5a190e0c69e6bf5c26889a55 (diff) | |
download | cmake-e5e91d617940cab2ea4e8630c6c20cd09794b3a9.tar.gz |
ENH: Teach set/get_property about CACHE properties
This adds the CACHE option to set_property and get_property commands.
This allows full control over cache entry information, so advanced users
can tweak their project cache as desired. The set_property command
allows only pre-defined CACHE properties to be set since others would
not persist anyway.
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index f53ed4920d..365d052406 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -71,6 +71,18 @@ cmCacheManager::CacheEntryType cmCacheManager::StringToType(const char* s) return STRING; } +bool cmCacheManager::IsType(const char* s) +{ + for(int i=0; cmCacheManagerTypes[i]; ++i) + { + if(strcmp(s, cmCacheManagerTypes[i]) == 0) + { + return true; + } + } + return false; +} + bool cmCacheManager::LoadCache(cmMakefile* mf) { return this->LoadCache(mf->GetHomeOutputDirectory()); |