Răsfoiți Sursa

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

Bill Hoffman 19 ani în urmă
părinte
comite
cf23679d72
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      Source/cmake.cxx

+ 1 - 1
Source/cmake.cxx

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