summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesMainForm.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-01-07 21:30:27 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-01-07 21:30:27 (GMT)
commite58632aed3e26cde108557f7456fd35705929450 (patch)
treef58e462d15a03bae837eee9e899c3f4c0222ee77 /Source/CursesDialog/cmCursesMainForm.cxx
parentb2085d7e9dc15fedc21064a11a28b9141b7b0745 (diff)
downloadCMake-e58632aed3e26cde108557f7456fd35705929450.zip
CMake-e58632aed3e26cde108557f7456fd35705929450.tar.gz
CMake-e58632aed3e26cde108557f7456fd35705929450.tar.bz2
BUG: not all displayed messages are errors
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.cxx')
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index 6e4bebb..0a4a31d 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -519,7 +519,12 @@ void cmCursesMainForm::RunCMake(bool generateMakefiles)
m_OkToGenerate = true;
if(make.Generate(m_Args, generateMakefiles) != 0 || !m_Errors.empty())
{
- m_OkToGenerate = false;
+ // see if there was an error
+ if(cmSystemTools::GetErrorOccuredFlag())
+ {
+ m_OkToGenerate = false;
+ }
+ // reset error condition
cmSystemTools::ResetErrorOccuredFlag();
int x,y;
getmaxyx(stdscr, y, x);