From ccfeefae356241cd05ed06f595c697379620e512 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 8 Feb 2013 16:33:52 -0500 Subject: [PATCH] Fix crash on empty CMAKE__COMPILER value (#13901) Since commit fd33bf93 (fix for bug 6102, allow users to change the compiler, 2007-12-13) we keep an internal ;-list of language compiler variable and value pairs. Preserve empty values on expansion to ensure that the key/value pairing remains consistent. --- Source/cmake.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())