summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/ccmake.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-12-04 16:16:04 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-12-04 16:16:04 (GMT)
commitd42ded5b166b37d29c9837c5f3e0bceaa661c5ba (patch)
tree4eaec928dec9f555fca4067f3d85ddac8f5ba4ce /Source/CursesDialog/ccmake.cxx
parentcb4f04c94e5815393e9b1d765588c23656149b4e (diff)
downloadCMake-d42ded5b166b37d29c9837c5f3e0bceaa661c5ba.zip
CMake-d42ded5b166b37d29c9837c5f3e0bceaa661c5ba.tar.gz
CMake-d42ded5b166b37d29c9837c5f3e0bceaa661c5ba.tar.bz2
Added debugging.
Diffstat (limited to 'Source/CursesDialog/ccmake.cxx')
-rw-r--r--Source/CursesDialog/ccmake.cxx15
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 */