summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-27 11:49:23 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-27 11:49:30 (GMT)
commit7e3d81b1df9e2c192585d83300344546439e50bd (patch)
treebefbf08daebf622c4b2bf4f3ac91afdc8a4459d6 /Source/cmake.cxx
parentae96b772fa8c957dfc4cbb334f45874bd4043966 (diff)
parenta7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e (diff)
downloadCMake-7e3d81b1df9e2c192585d83300344546439e50bd.zip
CMake-7e3d81b1df9e2c192585d83300344546439e50bd.tar.gz
CMake-7e3d81b1df9e2c192585d83300344546439e50bd.tar.bz2
Merge topic 'cmprop-state'
a7f2ff16a4 cmState::GetCacheEntryProperty: return cmProp Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4522
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 59e7a37..0b7c4bc 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1410,9 +1410,9 @@ int cmake::HandleDeleteCacheVariables(const std::string& var)
cmProp existingValue = this->State->GetCacheEntryValue(save.key);
if (existingValue) {
save.type = this->State->GetCacheEntryType(save.key);
- if (const char* help =
+ if (cmProp help =
this->State->GetCacheEntryProperty(save.key, "HELPSTRING")) {
- save.help = help;
+ save.help = *help;
}
}
saved.push_back(std::move(save));