summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-11-07 19:44:50 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-11-07 19:44:50 (GMT)
commite7616c5b92d89922ed9fc27bc4c11e860d2c46aa (patch)
tree32484831266b5b1906bad743510fdc51bd5a9570 /Source/CursesDialog
parent8a4ae14a302c169b9d357b262f5e6f605a11acae (diff)
downloadCMake-e7616c5b92d89922ed9fc27bc4c11e860d2c46aa.zip
CMake-e7616c5b92d89922ed9fc27bc4c11e860d2c46aa.tar.gz
CMake-e7616c5b92d89922ed9fc27bc4c11e860d2c46aa.tar.bz2
use cmake as the executable for cmake and not ccurses
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/ccurses.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/CursesDialog/ccurses.cxx b/Source/CursesDialog/ccurses.cxx
index 6d9b34a..dfb3526 100644
--- a/Source/CursesDialog/ccurses.cxx
+++ b/Source/CursesDialog/ccurses.cxx
@@ -56,14 +56,16 @@ int main(int argc, char** argv)
int x,y;
getmaxyx(w, y, x);
-
+ std::string whereCMake = cmSystemTools::GetProgramPath(argv[0]);
+ whereCMake += "/cmake";
if ( argc == 2 )
{
- myform = new cmCursesMainForm(argv[1], argv[0], newCache);
+
+ myform = new cmCursesMainForm(argv[1], whereCMake.c_str(), newCache);
}
else
{
- myform = new cmCursesMainForm("", argv[0], newCache);
+ myform = new cmCursesMainForm("", whereCMake.c_str(), newCache);
}
myform->InitializeUI(w);
myform->Render(1, 1, x, y);