Browse Source

cmake-gui: Fix error status when interrupted.

Sometimes it wasn't returning an error and one could continue
with the generate generate as if no errors occurred, and even
with an incomplete configure step.
Clinton Stimpson 13 years ago
parent
commit
52ec845fce
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/cmSystemTools.h

+ 2 - 1
Source/cmSystemTools.h

@@ -92,7 +92,8 @@ public:
   static bool GetErrorOccuredFlag()
     {
       return cmSystemTools::s_ErrorOccured ||
-        cmSystemTools::s_FatalErrorOccured;
+        cmSystemTools::s_FatalErrorOccured ||
+        GetInterruptFlag();
     }
   ///! If this is set to true, cmake stops processing commands.
   static void SetFatalErrorOccured()