BUG: fix for 7496, do not just report configure done when there is an error during configure

This commit is contained in:
Bill Hoffman 2008-08-19 13:48:21 -04:00
parent 1bda46564e
commit 513f7d1869
1 changed files with 6 additions and 1 deletions

View File

@ -764,7 +764,12 @@ void cmGlobalGenerator::Configure()
if ( !this->CMakeInstance->GetScriptMode() )
{
this->CMakeInstance->UpdateProgress("Configuring done", -1);
const char* msg = "Configuring done";
if(cmSystemTools::GetErrorOccuredFlag())
{
msg = "Configuring incomplete, errors occurred!";
}
this->CMakeInstance->UpdateProgress(msg, -1);
}
}