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:
commit
534cc47cd6
|
@ -79,6 +79,9 @@ The options are:
|
|||
If ``COMMAND`` specifies an executable target (created by the
|
||||
:command:`add_executable` command) it will automatically be replaced
|
||||
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
|
||||
executable target will be built before any target using this custom
|
||||
command. However this does NOT add a file-level dependency that
|
||||
|
|
Loading…
Reference in New Issue