diff options
author | Brad King <brad.king@kitware.com> | 2005-08-08 13:37:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-08-08 13:37:29 (GMT) |
commit | ce52a0802f834790e0ae493e286b77ed357ebee4 (patch) | |
tree | 12966bfef2944bf3143c613a4fc367d828cf0918 /Source/cmake.cxx | |
parent | 2b5f4b0be4f3b911f81133a87760cf81eee26c4a (diff) | |
download | CMake-ce52a0802f834790e0ae493e286b77ed357ebee4.zip CMake-ce52a0802f834790e0ae493e286b77ed357ebee4.tar.gz CMake-ce52a0802f834790e0ae493e286b77ed357ebee4.tar.bz2 |
BUG: When exiting before the configure step in script mode we must account for cmSystemTools::GetErrorOccuredFlag() for the return code.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index bcb67a1..aca7ab6 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1347,7 +1347,14 @@ int cmake::Run(const std::vector<std::string>& 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(); |