Browse Source

minor fix in error checking

Ken Martin 24 years ago
parent
commit
667a57d157
2 changed files with 1 additions and 1 deletions
  1. 1 0
      Source/MFCDialog/CMakeSetupDialog.cpp
  2. 0 1
      Source/cmake.cxx

+ 1 - 0
Source/MFCDialog/CMakeSetupDialog.cpp

@@ -423,6 +423,7 @@ void CMakeSetupDialog::OnBuildProjects()
     {
     cmSystemTools::Error(
       "Error in generation process, project files may be invalid");
+    cmSystemTools::ResetErrorOccuredFlag();
     }
   // update the GUI with any new values in the caused by the
   // generation process

+ 0 - 1
Source/cmake.cxx

@@ -238,7 +238,6 @@ int cmake::Generate(const std::vector<std::string>& args)
   
   if(cmSystemTools::GetErrorOccuredFlag())
     {
-    cmSystemTools::ResetErrorOccuredFlag();
     return -1;
     }
   return 0;