Merge branch 'doc-add_custom_command-clarify-TARGET_FILE' into release

This commit is contained in:
Brad King 2015-06-08 09:07:27 -04:00
commit a97b910655
1 changed files with 3 additions and 0 deletions

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