diff options
author | Brad King <brad.king@kitware.com> | 2003-01-22 15:33:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-01-22 15:33:34 (GMT) |
commit | 486454ef781a441334e876eef0c5d058526e97d4 (patch) | |
tree | ab1a52166bbf41fddbb533497a7c44d1e917cfe5 /Source/CursesDialog/ccmake.cxx | |
parent | c7b5bb6d2c11aa18d35670eb6c737ac70646efe3 (diff) | |
download | CMake-486454ef781a441334e876eef0c5d058526e97d4.zip CMake-486454ef781a441334e876eef0c5d058526e97d4.tar.gz CMake-486454ef781a441334e876eef0c5d058526e97d4.tar.bz2 |
BUG: Fixed crash when CMAKE_ROOT cannot be found.
Diffstat (limited to 'Source/CursesDialog/ccmake.cxx')
-rw-r--r-- | Source/CursesDialog/ccmake.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx index e46278a..fad6315 100644 --- a/Source/CursesDialog/ccmake.cxx +++ b/Source/CursesDialog/ccmake.cxx @@ -127,7 +127,15 @@ int main(int argc, char** argv) cmCursesMainForm* myform; myform = new cmCursesMainForm(args, x); - myform->LoadCache(cacheDir.c_str()); + if(myform->LoadCache(cacheDir.c_str())) + { + curses_clear(); + touchwin(stdscr); + endwin(); + delete myform; + std::cerr << "Error running cmake::LoadCache(). Aboriting.\n"; + return 1; + } cmSystemTools::SetErrorCallback(CMakeErrorHandler, myform); |