Merge topic 'doc-add_test-old'

b3f2455862 Help: The old add_test() form does not support TEST_LAUNCHER

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10970
This commit is contained in:
Brad King
2025-07-28 15:05:50 +00:00
committed by Kitware Robot
3 changed files with 8 additions and 1 deletions

View File

@@ -114,4 +114,5 @@ Add a test called ``<name>`` with the given command-line.
Unlike the above ``NAME`` signature, target names are not supported
in the command-line. Furthermore, tests added with this signature do not
support :manual:`generator expressions <cmake-generator-expressions(7)>`
in the command-line or test properties.
in the command-line or test properties, and the :prop_tgt:`TEST_LAUNCHER`
and :prop_tgt:`CROSSCOMPILING_EMULATOR` target properties are not supported.

View File

@@ -20,3 +20,6 @@ for built target system executables.
This property is initialized by the value of the
:variable:`CMAKE_CROSSCOMPILING_EMULATOR` variable if it is set when a target
is created.
This property is not supported when using the old form of :command:`add_test`
(i.e. without the ``NAME`` and ``COMMAND`` keywords).

View File

@@ -21,3 +21,6 @@ Contents of ``TEST_LAUNCHER`` may use
This property is initialized by the value of the
:variable:`CMAKE_TEST_LAUNCHER` variable if it is set when a target
is created.
This property is not supported when using the old form of :command:`add_test`
(i.e. without the ``NAME`` and ``COMMAND`` keywords).