소스 검색

BUG: fix for 4026, display a message if ccmake has errors

Bill Hoffman 17 년 전
부모
커밋
f0a41ce160
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      Source/CursesDialog/cmCursesMainForm.cxx

+ 5 - 4
Source/CursesDialog/cmCursesMainForm.cxx

@@ -683,14 +683,15 @@ int cmCursesMainForm::Configure(int noconfigure)
       {
       this->OkToGenerate = false;
       }
-    // reset error condition
-    cmSystemTools::ResetErrorOccuredFlag();
     int xx,yy;
     getmaxyx(stdscr, yy, xx);
     cmCursesLongMessageForm* msgs = new cmCursesLongMessageForm(
       this->Errors,
-      cmSystemTools::GetErrorOccuredFlag() ? "Errors occurred during the last pass." :
-                                             "CMake produced the following output.");
+      cmSystemTools::GetErrorOccuredFlag()
+      ? "Errors occurred during the last pass." :
+      "CMake produced the following output.");
+    // reset error condition
+    cmSystemTools::ResetErrorOccuredFlag();
     CurrentForm = msgs;
     msgs->Render(1,1,xx,yy);
     msgs->HandleInput();