summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-01 18:10:26 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-01 18:10:26 (GMT)
commit2f98c791fae6f46af4463e9eed5d5a674d6f1ddb (patch)
treeb2022ff1d3310b88ee917368a444bceafd4c3beb /Source/cmCacheManager.h
parent7d33e05a15bfb56c8dfba4731c2008567f244972 (diff)
downloadCMake-2f98c791fae6f46af4463e9eed5d5a674d6f1ddb.zip
CMake-2f98c791fae6f46af4463e9eed5d5a674d6f1ddb.tar.gz
CMake-2f98c791fae6f46af4463e9eed5d5a674d6f1ddb.tar.bz2
ENH: Allow specifying cmake variables on the command line without specifying the type Bug #118 - Specifying cache entries with -D should not need the type
Diffstat (limited to 'Source/cmCacheManager.h')
-rw-r--r--Source/cmCacheManager.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h
index 12c2aef..6655997 100644
--- a/Source/cmCacheManager.h
+++ b/Source/cmCacheManager.h
@@ -31,7 +31,7 @@ class cmCacheManager
public:
class CacheIterator;
friend class cmCacheManager::CacheIterator;
- enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING, INTERNAL,STATIC,UNINITIALIZED };
+ enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING, INTERNAL,STATIC, UNINITIALIZED };
private:
struct CacheEntry
@@ -125,6 +125,10 @@ public:
std::string& value,
CacheEntryType& type);
+ static bool ParseEntry(const char* entry,
+ std::string& var,
+ std::string& value);
+
///! Get a value from the cache given a key
const char* GetCacheValue(const char* key) const;