diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-19 12:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-19 12:18:42 (GMT) |
commit | 0bf0e35e5943891c963860f2339339ad43020d60 (patch) | |
tree | cfc0df1ffec5ac16b4f269c3eb24174d7d1ed989 /Source/cmState.cxx | |
parent | 60db3af147e03e6073ecd6c5729d627d4af66a67 (diff) | |
download | CMake-0bf0e35e5943891c963860f2339339ad43020d60.zip CMake-0bf0e35e5943891c963860f2339339ad43020d60.tar.gz CMake-0bf0e35e5943891c963860f2339339ad43020d60.tar.bz2 |
cmCacheManager::GetProperty: return cmProp
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r-- | Source/cmState.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index bc08223..b1fa772 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -199,7 +199,8 @@ const char* cmState::GetCacheEntryProperty(std::string const& key, if (!it.PropertyExists(propertyName)) { return nullptr; } - return it.GetProperty(propertyName); + cmProp retVal = it.GetProperty(propertyName); + return retVal ? retVal->c_str() : nullptr; } bool cmState::GetCacheEntryPropertyAsBool(std::string const& key, |