diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2016-06-10 08:10:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-10 13:33:41 (GMT) |
commit | 63c0e92c9395083a61fe31cd89bee7e3814f10e8 (patch) | |
tree | 9a9ab88f944348561e806ca92a0daccd93615bb0 /Source | |
parent | 6eee24634bc1791a64f8146c0f79c769eb9dfb83 (diff) | |
download | CMake-63c0e92c9395083a61fe31cd89bee7e3814f10e8.zip CMake-63c0e92c9395083a61fe31cd89bee7e3814f10e8.tar.gz CMake-63c0e92c9395083a61fe31cd89bee7e3814f10e8.tar.bz2 |
cmState: Expose list of properties of values in the cache
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmState.cxx | 8 | ||||
-rw-r--r-- | Source/cmState.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index 04f07ce..d2cfaba 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -246,6 +246,14 @@ void cmState::SetCacheEntryBoolProperty(std::string const& key, it.SetProperty(propertyName, value); } +std::vector<std::string> cmState::GetCacheEntryPropertyList( + const std::string& key) +{ + cmCacheManager::CacheIterator it = + this->CacheManager->GetCacheIterator(key.c_str()); + return it.GetPropertyList(); +} + const char* cmState::GetCacheEntryProperty(std::string const& key, std::string const& propertyName) { diff --git a/Source/cmState.h b/Source/cmState.h index 18c45b8..935faec 100644 --- a/Source/cmState.h +++ b/Source/cmState.h @@ -247,6 +247,7 @@ public: std::string const& value); void SetCacheEntryBoolProperty(std::string const& key, std::string const& propertyName, bool value); + std::vector<std::string> GetCacheEntryPropertyList(std::string const& key); const char* GetCacheEntryProperty(std::string const& key, std::string const& propertyName); bool GetCacheEntryPropertyAsBool(std::string const& key, |