summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesMainForm.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-11-06 17:03:36 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-11-06 17:03:36 (GMT)
commit4ddee8e0e8c16364c7b201d640374d822b6cdeda (patch)
tree0a86c0aeb787b02dcc883d8219fd0b117742f4a7 /Source/CursesDialog/cmCursesMainForm.cxx
parent319a5e007713726e1548148045b157eb286f1ef9 (diff)
downloadCMake-4ddee8e0e8c16364c7b201d640374d822b6cdeda.zip
CMake-4ddee8e0e8c16364c7b201d640374d822b6cdeda.tar.gz
CMake-4ddee8e0e8c16364c7b201d640374d822b6cdeda.tar.bz2
ENH: tell cmake object where cmake is
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.cxx')
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index 57811ed..7f29128 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -21,8 +21,9 @@ inline int ctrl(int z)
}
cmCursesMainForm::cmCursesMainForm(const char* whereSource,
+ const char* whereCMake,
bool newCache) :
- m_WhereSource(whereSource)
+ m_WhereSource(whereSource), m_WhereCMake(whereCMake)
{
m_Fields = 0;
m_Window = 0;
@@ -331,7 +332,7 @@ void cmCursesMainForm::RunCMake(bool generateMakefiles)
cmake make;
// create the arguments for the cmake object
std::vector<std::string> args;
- args.push_back("cmake");
+ args.push_back(m_WhereCMake);
if (m_WhereSource != "")
{
std::string arg;