Files
CMake/Help/release/dev/cmake-language-exit.rst
leha-bot 1bb1769235 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
2024-01-16 10:41:31 +03:00

6 lines
163 B
ReStructuredText

cmake-language-exit
-------------------
* The :command:`cmake_language()` command gained a new ``EXIT``
sub-command to exit scripts with a specified exit code.