diff options
author | Brad King <brad.king@kitware.com> | 2015-06-08 14:34:51 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-06-08 14:34:51 (GMT) |
commit | 534cc47cd603b10aecb212576d03c9f687dce292 (patch) | |
tree | 2df23bce5efe82f6c09649a4009ba731ccba091b /Help | |
parent | 092133b1bace24c718a5798a800570a3f384e618 (diff) | |
parent | 0e708d17e9d667764d6363a3e03cadff27ca7992 (diff) | |
download | CMake-534cc47cd603b10aecb212576d03c9f687dce292.zip CMake-534cc47cd603b10aecb212576d03c9f687dce292.tar.gz CMake-534cc47cd603b10aecb212576d03c9f687dce292.tar.bz2 |
Merge topic 'doc-add_custom_command-clarify-TARGET_FILE'
0e708d17 Help: Reference TARGET_FILE genex in add_custom_command docs (#15605)
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/add_custom_command.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst index e646c56..ecbf9dd 100644 --- a/Help/command/add_custom_command.rst +++ b/Help/command/add_custom_command.rst @@ -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 |