use cmake as the executable for cmake and not ccurses

This commit is contained in:
Bill Hoffman 2001-11-07 14:44:50 -05:00
parent 8a4ae14a30
commit e7616c5b92
1 changed files with 5 additions and 3 deletions

View File

@ -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);