From 1bda46564e7695a405b0c1803c747c1097fced02 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 19 Aug 2008 13:31:21 -0400 Subject: BUG: 7448 fix crash in ccmake when compiler is changed --- Source/cmake.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index b89ce7e..94c27bf 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -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 saved; cmOStringStream warning; -- cgit v0.12