summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/ccmake.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2002-04-23 20:16:48 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2002-04-23 20:16:48 (GMT)
commit77bb62e00c5ba7a77cbee2cc710b7631891c0518 (patch)
treed9724a4d470221c7b27337ec5163897edb5c1891 /Source/CursesDialog/ccmake.cxx
parentb3b3281b7f4f52419d511a4025a4e45959c92732 (diff)
downloadCMake-77bb62e00c5ba7a77cbee2cc710b7631891c0518.zip
CMake-77bb62e00c5ba7a77cbee2cc710b7631891c0518.tar.gz
CMake-77bb62e00c5ba7a77cbee2cc710b7631891c0518.tar.bz2
Exit ccmake on fatal errors.
Diffstat (limited to 'Source/CursesDialog/ccmake.cxx')
-rw-r--r--Source/CursesDialog/ccmake.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index 7d9e348..5cc5db6 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -124,10 +124,11 @@ int main(int argc, char** argv)
cmCursesForm::CurrentForm = myform;
myform->InitializeUI();
- myform->RunCMake(false);
-
- myform->Render(1, 1, x, y);
- myform->HandleInput();
+ if (myform->RunCMake(false) == 0 )
+ {
+ myform->Render(1, 1, x, y);
+ myform->HandleInput();
+ }
// Need to clean-up better
curses_clear();