summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp1
-rw-r--r--Source/cmake.cxx1
2 files changed, 1 insertions, 1 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index cddc3d1..1bebff3 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/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
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 5543358..830894f 100644
--- a/Source/cmake.cxx
+++ b/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;