BUG: not all displayed messages are errors

This commit is contained in:
Bill Hoffman 2002-01-07 16:30:27 -05:00
parent b2085d7e9d
commit e58632aed3
1 changed files with 6 additions and 1 deletions

View File

@ -518,8 +518,13 @@ void cmCursesMainForm::RunCMake(bool generateMakefiles)
// run the generate process // run the generate process
m_OkToGenerate = true; m_OkToGenerate = true;
if(make.Generate(m_Args, generateMakefiles) != 0 || !m_Errors.empty()) if(make.Generate(m_Args, generateMakefiles) != 0 || !m_Errors.empty())
{
// see if there was an error
if(cmSystemTools::GetErrorOccuredFlag())
{ {
m_OkToGenerate = false; m_OkToGenerate = false;
}
// reset error condition
cmSystemTools::ResetErrorOccuredFlag(); cmSystemTools::ResetErrorOccuredFlag();
int x,y; int x,y;
getmaxyx(stdscr, y, x); getmaxyx(stdscr, y, x);