浏览代码

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

Bill Hoffman 19 年之前
父节点
当前提交
cf23679d72
共有 1 个文件被更改,包括 1 次插入1 次删除
  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());
     }