Merge topic 'doc-add_custom_command-clarify-TARGET_FILE'

0e708d17 Help: Reference TARGET_FILE genex in add_custom_command docs (#15605)
This commit is contained in:
Brad King 2015-06-08 10:34:51 -04:00 committed by CMake Topic Stage
commit 534cc47cd6

View File

@ -79,6 +79,9 @@ The options are:
If ``COMMAND`` specifies an executable target (created by the If ``COMMAND`` specifies an executable target (created by the
:command:`add_executable` command) it will automatically be replaced :command:`add_executable` command) it will automatically be replaced
by the location of the executable created at build time. by the location of the executable created at build time.
(Use the ``TARGET_FILE``
:manual:`generator expression <cmake-generator-expressions(7)>` to
reference an executable later in the command line.)
Additionally a target-level dependency will be added so that the Additionally a target-level dependency will be added so that the
executable target will be built before any target using this custom executable target will be built before any target using this custom
command. However this does NOT add a file-level dependency that command. However this does NOT add a file-level dependency that