diff options
author | Brad King <brad.king@kitware.com> | 2016-06-13 10:03:05 -0400 |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-06-13 10:03:05 -0400 |
commit | 473634eb1cc4f664c8b7cdc12a103828560c225f (patch) | |
tree | 00970c12021ddca79336e406cdf8ee98b70a81d0 /Source/cmCacheManager.cxx | |
parent | 4e66ca1952c0ba9dfba6050f83f67c90884c8492 (diff) | |
parent | 63c0e92c9395083a61fe31cd89bee7e3814f10e8 (diff) | |
download | cmake-473634eb1cc4f664c8b7cdc12a103828560c225f.tar.gz |
Merge topic 'expose-cache-properties'
63c0e92c cmState: Expose list of properties of values in the cache
6eee2463 cmCacheEntry: Retrieve all properties of cache entries
120899c6 cmPropertyList: Add a way to retrieve all properties
7066218e cmake: Kill cmake::CacheManager and its getter
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index 9adfdafaef..bcef3c84c7 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -540,6 +540,11 @@ void cmCacheManager::CacheIterator::Next() } } +std::vector<std::string> cmCacheManager::CacheIterator::GetPropertyList() const +{ + return this->GetEntry().GetPropertyList(); +} + void cmCacheManager::CacheIterator::SetValue(const char* value) { if (this->IsAtEnd()) { @@ -559,6 +564,11 @@ bool cmCacheManager::CacheIterator::GetValueAsBool() const return cmSystemTools::IsOn(this->GetEntry().Value.c_str()); } +std::vector<std::string> cmCacheManager::CacheEntry::GetPropertyList() const +{ + return this->Properties.GetPropertyList(); +} + const char* cmCacheManager::CacheEntry::GetProperty( const std::string& prop) const { |