diff --git a/Source/cmake.cxx b/Source/cmake.cxx index d57e981b6..036440ac2 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2084,7 +2084,7 @@ struct SaveCacheEntry int cmake::HandleDeleteCacheVariables(const char* var) { std::vector argsSplit; - cmSystemTools::ExpandListArgument(std::string(var), argsSplit); + cmSystemTools::ExpandListArgument(std::string(var), argsSplit, true); // erase the property to avoid infinite recursion this->SetProperty("__CMAKE_DELETE_CACHE_CHANGE_VARS_", ""); if(this->GetIsInTryCompile())