diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-07 21:30:27 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-07 21:30:27 (GMT) |
commit | e58632aed3e26cde108557f7456fd35705929450 (patch) | |
tree | f58e462d15a03bae837eee9e899c3f4c0222ee77 /Source/CursesDialog | |
parent | b2085d7e9dc15fedc21064a11a28b9141b7b0745 (diff) | |
download | CMake-e58632aed3e26cde108557f7456fd35705929450.zip CMake-e58632aed3e26cde108557f7456fd35705929450.tar.gz CMake-e58632aed3e26cde108557f7456fd35705929450.tar.bz2 |
BUG: not all displayed messages are errors
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 7 |
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); |