diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2019-12-20 17:58:15 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-12-20 17:58:31 (GMT) |
commit | 1a81acdd229f066d7b50df984d84904e923a2f28 (patch) | |
tree | 7a6fae41cc5f80e934a8da8af17bf4b5a90ecc1d /Help | |
parent | 2fafa66b182aff78bb9f26928a61379e5a9b2f1c (diff) | |
parent | f5126badd8aadd307a2d38b215cb1dc2ff43647d (diff) | |
download | CMake-1a81acdd229f066d7b50df984d84904e923a2f28.zip CMake-1a81acdd229f066d7b50df984d84904e923a2f28.tar.gz CMake-1a81acdd229f066d7b50df984d84904e923a2f28.tar.bz2 |
Merge topic 'add_custom_command-depends-path'
f5126badd8 add_custom_command: convert DEPENDS path arguments to absolute paths
a5f44ec925 cmAddCustomCommandCommand: remove unnecessary braces
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4148
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/add_custom_command.rst | 8 | ||||
-rw-r--r-- | Help/release/dev/add_custom_command-depends-path.rst | 8 |
2 files changed, 13 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 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. |