summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
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,