diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2002-04-23 20:16:48 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2002-04-23 20:16:48 (GMT) |
commit | 77bb62e00c5ba7a77cbee2cc710b7631891c0518 (patch) | |
tree | d9724a4d470221c7b27337ec5163897edb5c1891 /Source/cmake.cxx | |
parent | b3b3281b7f4f52419d511a4025a4e45959c92732 (diff) | |
download | CMake-77bb62e00c5ba7a77cbee2cc710b7631891c0518.zip CMake-77bb62e00c5ba7a77cbee2cc710b7631891c0518.tar.gz CMake-77bb62e00c5ba7a77cbee2cc710b7631891c0518.tar.bz2 |
Exit ccmake on fatal errors.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 097b1be..b512d92 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -370,7 +370,7 @@ int cmake::Generate(const std::vector<std::string>& args, bool buildMakefiles) message += cacheStart; message += "\nRe-run cmake with a different source directory."; cmSystemTools::Error(message.c_str()); - return -1; + return -2; } } mf.AddCacheDefinition("CMAKE_HOME_DIRECTORY", mf.GetHomeDirectory(), |