diff options
author | Brad King <brad.king@kitware.com> | 2020-09-22 16:57:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-23 13:25:42 (GMT) |
commit | f2daa025e3bf05f89a745e6a65fea9537e0a035d (patch) | |
tree | 2e7528043c7ee905e3777e53e11698f8b81a9a57 /Help/command/set_property.rst | |
parent | 0cb7216b9f016d5749209227502e499b53b33841 (diff) | |
download | CMake-f2daa025e3bf05f89a745e6a65fea9537e0a035d.zip CMake-f2daa025e3bf05f89a745e6a65fea9537e0a035d.tar.gz CMake-f2daa025e3bf05f89a745e6a65fea9537e0a035d.tar.bz2 |
{get,set}_property: Add support for referencing binary directories
Index directories by their binary directory path in addition to their
source directory path.
Fixes: #19262
Diffstat (limited to 'Help/command/set_property.rst')
-rw-r--r-- | Help/command/set_property.rst | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Help/command/set_property.rst b/Help/command/set_property.rst index 93c2d9c..b5c1613 100644 --- a/Help/command/set_property.rst +++ b/Help/command/set_property.rst @@ -26,8 +26,11 @@ It must be one of the following: Scope is unique and does not accept a name. ``DIRECTORY`` - Scope defaults to the current directory but another directory + Scope defaults to the current directory but other directories (already processed by CMake) may be named by full or relative path. + Each path may reference either a source directory, or since CMake 3.19, + a binary directory. + Relative paths are treated as relative to the current source directory. See also the :command:`set_directory_properties` command. ``TARGET`` @@ -42,8 +45,9 @@ It must be one of the following: ``DIRECTORY <dirs>...`` The source file property will be set in each of the ``<dirs>`` - directories' scopes. CMake must already know about each of these - source directories, either by having added them through a call to + directories' scopes. Each path may reference either a source directory, + or since CMake 3.19, a binary directory. CMake must already know about + each of these directories, either by having added them 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. |