summaryrefslogtreecommitdiffstats
path: root/Source/cmFileAPICache.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-25 18:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-25 18:46:52 (GMT)
commita7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e (patch)
tree91964f0266720537aae09ce0f42b8daa2107dba2 /Source/cmFileAPICache.cxx
parentea54f8d44199502d6d02369ea0a2de4e9ef8c1ca (diff)
downloadCMake-a7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e.zip
CMake-a7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e.tar.gz
CMake-a7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e.tar.bz2
cmState::GetCacheEntryProperty: return cmProp
Diffstat (limited to 'Source/cmFileAPICache.cxx')
-rw-r--r--Source/cmFileAPICache.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmFileAPICache.cxx b/Source/cmFileAPICache.cxx
index 639df52..5d2ddf9 100644
--- a/Source/cmFileAPICache.cxx
+++ b/Source/cmFileAPICache.cxx
@@ -94,7 +94,8 @@ Json::Value Cache::DumpEntryProperty(std::string const& name,
{
Json::Value property = Json::objectValue;
property["name"] = prop;
- property["value"] = this->State->GetCacheEntryProperty(name, prop);
+ cmProp p = this->State->GetCacheEntryProperty(name, prop);
+ property["value"] = p ? *p : "";
return property;
}
}