From b3f245586239729d30f65d9ee73f64ee23547d90 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Thu, 24 Jul 2025 17:06:19 +0200 Subject: [PATCH] Help: The old add_test() form does not support TEST_LAUNCHER Extend commit 1ec0372ed4 (add_test: Optionally use a launcher for tests running in-project targets, 2023-11-11, v3.29.0-rc1~237^2~1). Fixes: #27083 --- Help/command/add_test.rst | 3 ++- Help/prop_tgt/CROSSCOMPILING_EMULATOR.rst | 3 +++ Help/prop_tgt/TEST_LAUNCHER.rst | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Help/command/add_test.rst b/Help/command/add_test.rst index dbaa4fb129..bbfcca2931 100644 --- a/Help/command/add_test.rst +++ b/Help/command/add_test.rst @@ -114,4 +114,5 @@ Add a test called ```` 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 ` -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. diff --git a/Help/prop_tgt/CROSSCOMPILING_EMULATOR.rst b/Help/prop_tgt/CROSSCOMPILING_EMULATOR.rst index d09ff1929e..8a5c5629ea 100644 --- a/Help/prop_tgt/CROSSCOMPILING_EMULATOR.rst +++ b/Help/prop_tgt/CROSSCOMPILING_EMULATOR.rst @@ -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). diff --git a/Help/prop_tgt/TEST_LAUNCHER.rst b/Help/prop_tgt/TEST_LAUNCHER.rst index 7eec3192b3..a2103bcda6 100644 --- a/Help/prop_tgt/TEST_LAUNCHER.rst +++ b/Help/prop_tgt/TEST_LAUNCHER.rst @@ -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).