diff options
author | Brad King <brad.king@kitware.com> | 2013-02-08 21:33:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-02-08 21:33:52 (GMT) |
commit | ccfeefae356241cd05ed06f595c697379620e512 (patch) | |
tree | 12ae975f16e50f2923a343522f0ccf776411b3ea /Source/cmake.cxx | |
parent | 7df05c8198cfcc60d4fd067214c630f51e11f2eb (diff) | |
download | CMake-ccfeefae356241cd05ed06f595c697379620e512.zip CMake-ccfeefae356241cd05ed06f595c697379620e512.tar.gz CMake-ccfeefae356241cd05ed06f595c697379620e512.tar.bz2 |
Fix crash on empty CMAKE_<lang>_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.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index d57e981..036440a 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2084,7 +2084,7 @@ struct SaveCacheEntry int cmake::HandleDeleteCacheVariables(const char* var) { std::vector<std::string> 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()) |