Browse Source

ENH: save the cache on fatal error so that users can set cache values

Bill Hoffman 19 years ago
parent
commit
cf23679d72
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmake.cxx

+ 1 - 1
Source/cmake.cxx

@@ -1432,7 +1432,7 @@ int cmake::Configure()
     this->CacheManager->RemoveCacheEntry("CMAKE_GENERATOR");
     this->CacheManager->RemoveCacheEntry("CMAKE_GENERATOR");
     }
     }
   // only save the cache if there were no fatal errors
   // only save the cache if there were no fatal errors
-  if ( !this->ScriptMode && !cmSystemTools::GetFatalErrorOccured() )
+  if ( !this->ScriptMode )
     {
     {
     this->CacheManager->SaveCache(this->GetHomeOutputDirectory());
     this->CacheManager->SaveCache(this->GetHomeOutputDirectory());
     }
     }