BUG: 7448 fix crash in ccmake when compiler is changed
This commit is contained in:
parent
181c1eeede
commit
1bda46564e
|
@ -1871,7 +1871,10 @@ int cmake::HandleDeleteCacheVariables(const char* var)
|
||||||
cmSystemTools::ExpandListArgument(std::string(var), argsSplit);
|
cmSystemTools::ExpandListArgument(std::string(var), argsSplit);
|
||||||
// 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())
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
cmCacheManager::CacheIterator ci = this->CacheManager->NewIterator();
|
cmCacheManager::CacheIterator ci = this->CacheManager->NewIterator();
|
||||||
std::vector<SaveCacheEntry> saved;
|
std::vector<SaveCacheEntry> saved;
|
||||||
cmOStringStream warning;
|
cmOStringStream warning;
|
||||||
|
|
Loading…
Reference in New Issue