summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-19 11:17:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-19 11:18:27 (GMT)
commit60db3af147e03e6073ecd6c5729d627d4af66a67 (patch)
tree5cc366306675f90bff34005fc594974ac1a0cb90 /Source/cmState.h
parent7bdf84d2d5a9ab15ec732ca3b6b399846fa427f2 (diff)
parentbd891335432a5797a0415ebf35a6f22adba96684 (diff)
downloadCMake-60db3af147e03e6073ecd6c5729d627d4af66a67.zip
CMake-60db3af147e03e6073ecd6c5729d627d4af66a67.tar.gz
CMake-60db3af147e03e6073ecd6c5729d627d4af66a67.tar.bz2
Merge topic 'cmprop-state'
bd89133543 cmState::GetCacheEntryValue: return cmProp Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4493
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 460c6bb..b577a72 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -30,6 +30,8 @@ class cmStateSnapshot;
class cmMessenger;
class cmExecutionStatus;
+using cmProp = const std::string*;
+
class cmState
{
friend class cmStateSnapshot;
@@ -87,7 +89,7 @@ public:
bool DeleteCache(const std::string& path);
std::vector<std::string> GetCacheEntryKeys() const;
- const char* GetCacheEntryValue(std::string const& key) const;
+ cmProp GetCacheEntryValue(std::string const& key) const;
std::string GetSafeCacheEntryValue(std::string const& key) const;
const std::string* GetInitializedCacheValue(std::string const& key) const;
cmStateEnums::CacheEntryType GetCacheEntryType(std::string const& key) const;