diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-29 15:14:48 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-29 15:14:48 (GMT) |
commit | dfd22fdf23f09d311f197b6f596dbcd3163b4914 (patch) | |
tree | af412e131d692674059f69511cb23f5b55342e88 /Source/CursesDialog/cmCursesMainForm.cxx | |
parent | 1e09bc5dde0dd4419861e510ea339ecf98a580a0 (diff) | |
download | CMake-dfd22fdf23f09d311f197b6f596dbcd3163b4914.zip CMake-dfd22fdf23f09d311f197b6f596dbcd3163b4914.tar.gz CMake-dfd22fdf23f09d311f197b6f596dbcd3163b4914.tar.bz2 |
ENH: On envocation of ccmake check if directories are correct, but do not rerun configure
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.cxx')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 546dc32..283c43d 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -624,9 +624,8 @@ void cmCursesMainForm::UpdateProgress(const char *msg, float prog, void* vp) refresh(); } -int cmCursesMainForm::Configure() +int cmCursesMainForm::Configure(int noconfigure) { - int xi,yi; getmaxyx(stdscr, yi, xi); @@ -648,7 +647,19 @@ int cmCursesMainForm::Configure() // run the generate process m_OkToGenerate = true; - int retVal = this->m_CMakeInstance->Configure(); + int retVal; + if ( noconfigure ) + { + retVal = this->m_CMakeInstance->DoPreConfigureChecks(); + if ( retVal > 0 ) + { + retVal = 0; + } + } + else + { + retVal = this->m_CMakeInstance->Configure(); + } this->m_CMakeInstance->SetProgressCallback(0, 0); keypad(stdscr,TRUE); /* Use key symbols as |