summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-10-09 16:49:49 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-10-09 16:49:49 (GMT)
commitf0a41ce16072b9df79c4a2fa13ccdee055f7e6e4 (patch)
tree1d86ae5dfc284a02052be90821e796b17ad504d5
parent576167d381cb9cc28ca726f58ccccf76b5dd3421 (diff)
downloadCMake-f0a41ce16072b9df79c4a2fa13ccdee055f7e6e4.zip
CMake-f0a41ce16072b9df79c4a2fa13ccdee055f7e6e4.tar.gz
CMake-f0a41ce16072b9df79c4a2fa13ccdee055f7e6e4.tar.bz2
BUG: fix for 4026, display a message if ccmake has errors
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index 8946238..e491164 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -683,14 +683,15 @@ int cmCursesMainForm::Configure(int noconfigure)
{
this->OkToGenerate = false;
}
- // reset error condition
- cmSystemTools::ResetErrorOccuredFlag();
int xx,yy;
getmaxyx(stdscr, yy, xx);
cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm(
this->Errors,
- cmSystemTools::GetErrorOccuredFlag() ? "Errors occurred during the last pass." :
- "CMake produced the following output.");
+ cmSystemTools::GetErrorOccuredFlag()
+ ? "Errors occurred during the last pass." :
+ "CMake produced the following output.");
+ // reset error condition
+ cmSystemTools::ResetErrorOccuredFlag();
CurrentForm = msgs;
msgs->Render(1,1,xx,yy);
msgs->HandleInput();