diff options
author | Brad King <brad.king@kitware.com> | 2020-03-19 11:17:31 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-19 11:18:27 (GMT) |
commit | 60db3af147e03e6073ecd6c5729d627d4af66a67 (patch) | |
tree | 5cc366306675f90bff34005fc594974ac1a0cb90 /Source/cmState.h | |
parent | 7bdf84d2d5a9ab15ec732ca3b6b399846fa427f2 (diff) | |
parent | bd891335432a5797a0415ebf35a6f22adba96684 (diff) | |
download | CMake-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.h | 4 |
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; |