From 52ec845fce84e327216819b7b89183dbbd452636 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Tue, 4 Sep 2012 08:50:21 -0600 Subject: [PATCH] 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. --- Source/cmSystemTools.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 69673c938..0b2def216 100644 --- a/Source/cmSystemTools.h +++ b/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()