diff options
author | leha-bot <leha-bot@yandex.ru> | 2024-01-05 16:12:22 (GMT) |
---|---|---|
committer | leha-bot <leha-bot@yandex.ru> | 2024-01-16 07:41:31 (GMT) |
commit | 1bb17692359d675eee12996c43446fa9c9fe5175 (patch) | |
tree | 4b303b56a54fd9c22bfbfc57d49feaa5f4feac34 /Help/release/dev | |
parent | 4f160f7906ef8075dad54b9bf2e0ba204a1c41fc (diff) | |
download | CMake-1bb17692359d675eee12996c43446fa9c9fe5175.zip CMake-1bb17692359d675eee12996c43446fa9c9fe5175.tar.gz CMake-1bb17692359d675eee12996c43446fa9c9fe5175.tar.bz2 |
cmake_language: Add EXIT subcommand
Add tests to cover these cases:
* run as regular CMake module, in NORMAL_MODE (expected to fail);
* run as CMake script in SCRIPT_MODE (expected to exit with given code);
* run as CMake script that `include()`-s another script with EXIT subcommand;
* run as CMake script which EVAL-uates EXIT subcommand via
`cmake_language(EVAL CODE "<cmake code>")`.
Fixes: #23162
Diffstat (limited to 'Help/release/dev')
-rw-r--r-- | Help/release/dev/cmake-language-exit.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/release/dev/cmake-language-exit.rst b/Help/release/dev/cmake-language-exit.rst new file mode 100644 index 0000000..42e8ae2 --- /dev/null +++ b/Help/release/dev/cmake-language-exit.rst @@ -0,0 +1,5 @@ +cmake-language-exit +------------------- + +* The :command:`cmake_language()` command gained a new ``EXIT`` + sub-command to exit scripts with a specified exit code. |