Files
CMake/Help/variable/CMAKE_TEST_LAUNCHER.rst
Brad King 13ece67a58 Add genex support to TEST_LAUNCHER and CROSSCOMPILING_EMULATOR
Evaluate generator expressions in these properties, as they apply to
`add_test`, `add_custom_command`, and `add_custom_target`.

The `CMAKE_CROSSCOMPILING_EMULATOR` variable's `try_run` behavior occurs
at configure time and so cannot support generator expressions.
2024-01-29 10:30:24 -05:00

17 lines
570 B
ReStructuredText

CMAKE_TEST_LAUNCHER
-------------------
.. versionadded:: 3.29
This variable is used to initialize the :prop_tgt:`TEST_LAUNCHER` target
property of executable targets as they are created. It is used to specify
a launcher for running tests, added by the :command:`add_test` command,
that run an executable target.
If this variable contains a :ref:`semicolon-separated list <CMake Language
Lists>`, then the first value is the command and remaining values are its
arguments.
This variable can be initialized via an
:envvar:`CMAKE_TEST_LAUNCHER` environment variable.