Merge topic 'custom-target-exe-deps'

858fdd426b add_custom_command: Disallow exe-suffixed targets in DEPENDS
58ab03c031 add_custom_command: Update dependency search heuristics

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11801
This commit is contained in:
Brad King
2026-03-24 13:11:12 +00:00
committed by Kitware Robot
25 changed files with 126 additions and 14 deletions

View File

@@ -188,6 +188,12 @@ Generating Files
cause the custom command to re-run whenever the target is
recompiled.
.. versionchanged:: 4.4
Previously an executable target could be specified using the name
of the target with ``.exe`` appended. This is no longer allowed.
See policy :policy:`CMP0212`.
2. If the argument is an absolute path, a file-level dependency
is created on that path.