summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-06-10 08:10:07 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-10 13:33:41 (GMT)
commit63c0e92c9395083a61fe31cd89bee7e3814f10e8 (patch)
tree9a9ab88f944348561e806ca92a0daccd93615bb0 /Source/cmState.cxx
parent6eee24634bc1791a64f8146c0f79c769eb9dfb83 (diff)
downloadCMake-63c0e92c9395083a61fe31cd89bee7e3814f10e8.zip
CMake-63c0e92c9395083a61fe31cd89bee7e3814f10e8.tar.gz
CMake-63c0e92c9395083a61fe31cd89bee7e3814f10e8.tar.bz2
cmState: Expose list of properties of values in the cache
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx8
1 files changed, 8 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)
{