From 0e708d17e9d667764d6363a3e03cadff27ca7992 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 8 Jun 2015 09:04:23 -0400 Subject: 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. --- Help/command/add_custom_command.rst | 3 +++ 1 file changed, 3 insertions(+) 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 ` 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 -- cgit v0.12