summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-08-19 17:31:21 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-08-19 17:31:21 (GMT)
commit1bda46564e7695a405b0c1803c747c1097fced02 (patch)
treee3fb9bf40bde0546351608b67c57f03d777cb94d /Source/cmake.cxx
parent181c1eeede1e30497613ddbfc96f25c99f35e978 (diff)
downloadCMake-1bda46564e7695a405b0c1803c747c1097fced02.zip
CMake-1bda46564e7695a405b0c1803c747c1097fced02.tar.gz
CMake-1bda46564e7695a405b0c1803c747c1097fced02.tar.bz2
BUG: 7448 fix crash in ccmake when compiler is changed
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx5
1 files changed, 4 insertions, 1 deletions
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<SaveCacheEntry> saved;
cmOStringStream warning;