BUG: fix for 4026, display a message if ccmake has errors
This commit is contained in:
parent
576167d381
commit
f0a41ce160
|
@ -683,14 +683,15 @@ int cmCursesMainForm::Configure(int noconfigure)
|
||||||
{
|
{
|
||||||
this->OkToGenerate = false;
|
this->OkToGenerate = false;
|
||||||
}
|
}
|
||||||
// reset error condition
|
|
||||||
cmSystemTools::ResetErrorOccuredFlag();
|
|
||||||
int xx,yy;
|
int xx,yy;
|
||||||
getmaxyx(stdscr, yy, xx);
|
getmaxyx(stdscr, yy, xx);
|
||||||
cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm(
|
cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm(
|
||||||
this->Errors,
|
this->Errors,
|
||||||
cmSystemTools::GetErrorOccuredFlag() ? "Errors occurred during the last pass." :
|
cmSystemTools::GetErrorOccuredFlag()
|
||||||
"CMake produced the following output.");
|
? "Errors occurred during the last pass." :
|
||||||
|
"CMake produced the following output.");
|
||||||
|
// reset error condition
|
||||||
|
cmSystemTools::ResetErrorOccuredFlag();
|
||||||
CurrentForm = msgs;
|
CurrentForm = msgs;
|
||||||
msgs->Render(1,1,xx,yy);
|
msgs->Render(1,1,xx,yy);
|
||||||
msgs->HandleInput();
|
msgs->HandleInput();
|
||||||
|
|
Loading…
Reference in New Issue