summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/cmake_language/RunCMakeTest.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Experimental: add an experimental feature gate for `import std`Ben Boeckel2024-04-121-0/+2
|
* Tests/RunCMake/cmake_language: test GET_EXPERIMENTAL_FEATURE_ENABLEDBen Boeckel2024-04-101-0/+6
|
* cmake_language: Fix EXIT inside control flow blocksBrad King2024-02-141-0/+7
| | | | | | | These were missed in commit 1bb1769235 (cmake_language: Add EXIT subcommand, 2024-01-05, v3.29.0-rc1~112^2). Fixes: #25674
* cmake_language: Add EXIT subcommandleha-bot2024-01-161-0/+7
| | | | | | | | | | | | 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
* Add new flow-control commands for variables and policies scopes managementMarc Chevrier2022-08-221-0/+2
| | | | | | | Add block() and endblock() commands offering the capability to create new scopes for variables and/or policies. Fixes: #20171
* Add cmake_language(GET_MESSAGE_LOG_LEVEL) sub commandAlexandru Croitor2022-06-281-0/+58
| | | | | | | | | | | | | | | | | The new sub-command writes a string representation of the current log level to the output variable given to the sub-command. Given that the log-level might be set either via the --log-level command line option or via the CMAKE_MESSAGE_LOG_LEVEL cache / regular variables, the priority for each of the log level sources is as follows, with the first one being the highest: 1) --log-level 2) CMAKE_MESSAGE_LOG_LEVEL regular variable 3) CMAKE_MESSAGE_LOG_LEVEL cache variable 4) default log level (STATUS) Fixes: #23572
* cmake_language: Add signature to DEFER calls to later timesBrad King2020-09-291-0/+50
| | | | Fixes: #19575
* Tests: Simplify RunCMake.cmake_language invalid command casesBrad King2020-09-291-1/+10
|
* cmake_language: check CALL with control commandMarc Chevrier2020-05-261-0/+2
| | | | Fixes: #20739
* cmake_language: Rename command from cmake_commandBrad King2020-05-211-0/+23
Also rename the `INVOKE` signature to `CALL`. Fixes: #20732