summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-19 12:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-19 12:18:42 (GMT)
commit0bf0e35e5943891c963860f2339339ad43020d60 (patch)
treecfc0df1ffec5ac16b4f269c3eb24174d7d1ed989 /Source/cmState.cxx
parent60db3af147e03e6073ecd6c5729d627d4af66a67 (diff)
downloadCMake-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.cxx3
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,