summaryrefslogtreecommitdiffstats
path: root/Help/release
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/release
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/release')
-rw-r--r--Help/release/dev/add_custom_command-depends-path.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Help/release/dev/add_custom_command-depends-path.rst b/Help/release/dev/add_custom_command-depends-path.rst
new file mode 100644
index 0000000..69a805b
--- /dev/null
+++ b/Help/release/dev/add_custom_command-depends-path.rst
@@ -0,0 +1,8 @@
+add_custom_command-depends-path
+-------------------------------
+
+* The :command:`add_custom_command` command learned to detect paths in
+ ``DEPENDS`` arguments and convert them to paths relative to the current
+ binary directory. This only applies to paths which contain a ``/`` or ``\\``
+ in them because names like ``filename.txt`` could also be target names and
+ cannot be coverted into absolute paths blindly.