summaryrefslogtreecommitdiffstats
path: root/Help/manual/cmake.1.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-05-05 16:50:51 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-05-05 16:51:47 (GMT)
commit8a406805246efb0a25a9182b2805fd9a9a379b86 (patch)
tree459a3d60b9fa8736f40c379c1bba0d05f91e4b53 /Help/manual/cmake.1.rst
parent213f3917155ebe70b312c94cd8031bafa82c7215 (diff)
parent0aea13d20bc638ac896d5e0e817c6bd4f20e0770 (diff)
downloadCMake-8a406805246efb0a25a9182b2805fd9a9a379b86.zip
CMake-8a406805246efb0a25a9182b2805fd9a9a379b86.tar.gz
CMake-8a406805246efb0a25a9182b2805fd9a9a379b86.tar.bz2
Merge topic 'HelpExit'
0aea13d20b Help: for message(FATAL_ERROR), document nonzero exit code cc97725137 Help: document exit code of command cmake(1) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7175
Diffstat (limited to 'Help/manual/cmake.1.rst')
-rw-r--r--Help/manual/cmake.1.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst
index 3c5c46c..e0cb708 100644
--- a/Help/manual/cmake.1.rst
+++ b/Help/manual/cmake.1.rst
@@ -1061,6 +1061,18 @@ To view the presets available for a project, use
cmake <source-dir> --list-presets
+
+.. _`CMake Exit Code`:
+
+Return Value (Exit Code)
+========================
+
+Upon regular termination, the ``cmake`` executable returns the exit code ``0``.
+
+If termination is caused by the command :command:`message(FATAL_ERROR)`,
+or another error condition, then a non-zero exit code is returned.
+
+
See Also
========