summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-06-08 13:07:27 (GMT)
committerBrad King <brad.king@kitware.com>2015-06-08 13:07:27 (GMT)
commita97b910655af03787fbb4dca64752602d14d3910 (patch)
tree4f6cc74117d18f1468d930b3142aa08b7cf5e0b9
parentb8746c4cfe325f05dbcb4e9a99ca78496c90e74e (diff)
parent0e708d17e9d667764d6363a3e03cadff27ca7992 (diff)
downloadCMake-a97b910655af03787fbb4dca64752602d14d3910.zip
CMake-a97b910655af03787fbb4dca64752602d14d3910.tar.gz
CMake-a97b910655af03787fbb4dca64752602d14d3910.tar.bz2
Merge branch 'doc-add_custom_command-clarify-TARGET_FILE' into release
-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