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/get_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/get_property.rst')
-rw-r--r-- | Help/command/get_property.rst | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Help/command/get_property.rst b/Help/command/get_property.rst index 0602518..870c934 100644 --- a/Help/command/get_property.rst +++ b/Help/command/get_property.rst @@ -30,7 +30,9 @@ It must be one of the following: ``DIRECTORY`` Scope defaults to the current directory but another directory (already processed by CMake) may be named by the - full or relative path ``<dir>``. + full or relative path ``<dir>``. The ``<dir>`` 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:`get_directory_property` command. ``TARGET`` @@ -44,10 +46,11 @@ It must be one of the following: ``DIRECTORY <dir>`` The source file property will be read from the ``<dir>`` directory's - scope. CMake must already know about that source directory, either by - having added it through a call to :command:`add_subdirectory` or ``<dir>`` - being the top level source directory. Relative paths are treated as - relative to the current source directory. + scope. The ``<dir>`` may reference either a source directory, or + since CMake 3.19, a binary directory. CMake must already know about + the directory, either by having added it through a call + to :command:`add_subdirectory` or ``<dir>`` being the top level directory. + Relative paths are treated as relative to the current source directory. ``TARGET_DIRECTORY <target>`` The source file property will be read from the directory scope in which |