From ce52a0802f834790e0ae493e286b77ed357ebee4 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 8 Aug 2005 09:37:29 -0400 Subject: [PATCH] BUG: When exiting before the configure step in script mode we must account for cmSystemTools::GetErrorOccuredFlag() for the return code. --- Source/cmake.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index bcb67a177..aca7ab6c3 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1347,7 +1347,14 @@ int cmake::Run(const std::vector& args, bool noconfigure) // In script mode we terminate after running the script. if(m_ScriptMode) { - return 0; + if(cmSystemTools::GetErrorOccuredFlag()) + { + return -1; + } + else + { + return 0; + } } this->PreLoadCMakeFiles();