summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmake.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index dc06fae..d9c6b7a 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1409,6 +1409,8 @@ int cmake::HandleDeleteCacheVariables(const std::string& var)
this->State->GetCacheEntryProperty(save.key, "HELPSTRING")) {
save.help = *help;
}
+ } else {
+ save.type = cmStateEnums::CacheEntryType::UNINITIALIZED;
}
saved.push_back(std::move(save));
}