diff options
Diffstat (limited to 'Source/CursesDialog/ccmake.cxx')
-rw-r--r-- | Source/CursesDialog/ccmake.cxx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx index a05d726..ece3c02 100644 --- a/Source/CursesDialog/ccmake.cxx +++ b/Source/CursesDialog/ccmake.cxx @@ -38,13 +38,21 @@ void CMakeErrorHandler(const char* message, const char* title, bool& disable) int main(int argc, char** argv) { + bool debug = false; unsigned int i; int j; cmake msg; std::vector<std::string> args; for(j =0; j < argc; ++j) { - args.push_back(argv[j]); + if(strcmp(argv[j], "-debug") == 0) + { + debug = true; + } + else + { + args.push_back(argv[j]); + } } for(i=1; i < args.size(); ++i) @@ -64,6 +72,11 @@ int main(int argc, char** argv) cmCacheManager::GetInstance()->LoadCache(cmSystemTools::GetCurrentWorkingDirectory().c_str()); + if (debug) + { + cmCursesForm::DebugStart(); + } + initscr(); /* Initialization */ noecho(); /* Echo off */ cbreak(); /* nl- or cr not needed */ |