summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-06-08 13:04:23 (GMT)
committerBrad King <brad.king@kitware.com>2015-06-08 13:06:26 (GMT)
commit0e708d17e9d667764d6363a3e03cadff27ca7992 (patch)
tree81aecbe7317141446877a9fe898548882147938f /Help
parenta6916a6c6e397bda8b381f65dbfc59d3c52f8525 (diff)
downloadCMake-0e708d17e9d667764d6363a3e03cadff27ca7992.zip
CMake-0e708d17e9d667764d6363a3e03cadff27ca7992.tar.gz
CMake-0e708d17e9d667764d6363a3e03cadff27ca7992.tar.bz2
Help: Reference TARGET_FILE genex in add_custom_command docs (#15605)
When documenting in the COMMAND option how to reference an executable, we previously only explicitly covered how to do it for argv[0] and left it to the reader to follow the reference to the generator expressions manual. Add explicit mention of the TARGET_FILE genex in this documentation since it will be a commonly used generator expression in this context.
Diffstat (limited to 'Help')
-rw-r--r--Help/command/add_custom_command.rst3
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