BUG: not all displayed messages are errors
This commit is contained in:
parent
b2085d7e9d
commit
e58632aed3
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue