ENH: save the cache on fatal error so that users can set cache values
This commit is contained in:
parent
25d4127e2d
commit
cf23679d72
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue