summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);