summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-12-18 14:48:40 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2019-12-18 18:57:07 (GMT)
commitf5126badd8aadd307a2d38b215cb1dc2ff43647d (patch)
tree74c74b828f39756f0f0ec7bc7e012a913160b699 /Help/command
parenta5f44ec92558e229cf6927b321f5f7903af8b412 (diff)
downloadCMake-f5126badd8aadd307a2d38b215cb1dc2ff43647d.zip
CMake-f5126badd8aadd307a2d38b215cb1dc2ff43647d.tar.gz
CMake-f5126badd8aadd307a2d38b215cb1dc2ff43647d.tar.bz2
add_custom_command: convert DEPENDS path arguments to absolute paths
This is only done if they are "obviously" paths in that they contain a directory separator. Fixes: #17111
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/add_custom_command.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst
index aba3742..576ed5b 100644
--- a/Help/command/add_custom_command.rst
+++ b/Help/command/add_custom_command.rst
@@ -112,9 +112,11 @@ The options are:
build time.
``DEPENDS``
- Specify files on which the command depends. If any dependency is
- an ``OUTPUT`` of another custom command in the same directory
- (``CMakeLists.txt`` file) CMake automatically brings the other
+ Specify files on which the command depends. Entries in the ``DEPENDS``
+ argument list which may also be target names are assumed to be target names,
+ so only entries which contain a path separator are detected as file paths.
+ If any dependency is an ``OUTPUT`` of another custom command in the same
+ directory (``CMakeLists.txt`` file) CMake automatically brings the other
custom command into the target in which this command is built.
A target-level dependency is added if any dependency is listed as
``BYPRODUCTS`` of a target or any of its build events in the same