diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 283c43d80..ccd27ac3c 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -651,6 +651,7 @@ int cmCursesMainForm::Configure(int noconfigure) if ( noconfigure ) { retVal = this->m_CMakeInstance->DoPreConfigureChecks(); + m_OkToGenerate = false; if ( retVal > 0 ) { retVal = 0;