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.
This commit is contained in:
Brad King 2013-02-08 16:33:52 -05:00
parent 7df05c8198
commit ccfeefae35
1 changed files with 1 additions and 1 deletions

View File

@ -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())