Commit 1bda4656 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

BUG: 7448 fix crash in ccmake when compiler is changed

parent 181c1eee
......@@ -1871,7 +1871,10 @@ int cmake::HandleDeleteCacheVariables(const char* var)
cmSystemTools::ExpandListArgument(std::string(var), argsSplit);
// erase the property to avoid infinite recursion
this->SetProperty("__CMAKE_DELETE_CACHE_CHANGE_VARS_", "");
if(this->GetIsInTryCompile())
{
return 0;
}
cmCacheManager::CacheIterator ci = this->CacheManager->NewIterator();
std::vector<SaveCacheEntry> saved;
cmOStringStream warning;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment