diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2023-08-10 14:02:36 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2023-08-10 21:36:14 (GMT) |
commit | 753999d4db842a73727f7efb68ce1b6406b5913b (patch) | |
tree | 766935e2181329e796b2c97763c49bf5384b12e5 /Help | |
parent | 5ed03aa07a831cc51fefaddac2316d24a62d3137 (diff) | |
download | CMake-753999d4db842a73727f7efb68ce1b6406b5913b.zip CMake-753999d4db842a73727f7efb68ce1b6406b5913b.tar.gz CMake-753999d4db842a73727f7efb68ce1b6406b5913b.tar.bz2 |
set_property(TEST): Add DIRECTORY option
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/set_property.rst | 14 | ||||
-rw-r--r-- | Help/release/dev/test-properties-directory.rst | 6 |
2 files changed, 19 insertions, 1 deletions
diff --git a/Help/command/set_property.rst b/Help/command/set_property.rst index fc43974..f14b63d 100644 --- a/Help/command/set_property.rst +++ b/Help/command/set_property.rst @@ -12,7 +12,8 @@ Set a named property in a given scope. [DIRECTORY <dirs> ...] [TARGET_DIRECTORY <targets> ...] | INSTALL [<file1> ...] | - TEST [<test1> ...] | + TEST [<test1> ...] + [DIRECTORY <dir>] | CACHE [<entry1> ...] > [APPEND] [APPEND_STRING] PROPERTY <name> [<value1> ...]) @@ -91,6 +92,17 @@ It must be one of the following: :manual:`generator expressions <cmake-generator-expressions(7)>` for tests created by the :command:`add_test(NAME)` signature. + .. versionadded:: 3.28 + + Visibility can be set in other directory scopes using the following sub-option: + + ``DIRECTORY <dir>`` + The test property will be set in the ``<dir>`` directory's scope. CMake must + already know about this directory, either by having added it through a call + to :command:`add_subdirectory` or it being the top level source directory. + Relative paths are treated as relative to the current source directory. + ``<dir>`` may reference a binary directory. + ``CACHE`` Scope must name zero or more existing cache entries. diff --git a/Help/release/dev/test-properties-directory.rst b/Help/release/dev/test-properties-directory.rst new file mode 100644 index 0000000..7331ac3 --- /dev/null +++ b/Help/release/dev/test-properties-directory.rst @@ -0,0 +1,6 @@ +test-properties-directory +------------------------- + +* The ``TEST`` mode of the :command:`set_property` command gained a + ``DIRECTORY`` sub-option, which allows you to set properties on tests in + other directories. |