Merge topic 'empty-compiler-crash'

ccfeefa Fix crash on empty CMAKE_<lang>_COMPILER value (#13901)
This commit is contained in:
Brad King 2013-02-12 14:42:00 -05:00 committed by CMake Topic Stage
commit 3f1a0ad7ac
1 changed files with 1 additions and 1 deletions

View File

@ -2084,7 +2084,7 @@ struct SaveCacheEntry
int cmake::HandleDeleteCacheVariables(const char* var) int cmake::HandleDeleteCacheVariables(const char* var)
{ {
std::vector<std::string> argsSplit; 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 // erase the property to avoid infinite recursion
this->SetProperty("__CMAKE_DELETE_CACHE_CHANGE_VARS_", ""); this->SetProperty("__CMAKE_DELETE_CACHE_CHANGE_VARS_", "");
if(this->GetIsInTryCompile()) if(this->GetIsInTryCompile())