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

This commit is contained in:
Bill Hoffman 2006-04-20 17:00:43 -04:00
parent 25d4127e2d
commit cf23679d72
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}