summaryrefslogtreecommitdiffstats
path: root/Help/command/add_custom_command.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-08-05 14:14:35 (GMT)
committerBrad King <brad.king@kitware.com>2014-08-05 14:14:35 (GMT)
commit5bf1c5cce17fe76727ea4487fd500d7f9a4b5da4 (patch)
treed6896301d6e8656de49c66225b1f9eaaf6f5a28d /Help/command/add_custom_command.rst
parent2a58c872d7764e9a4c618662ae49da289789e44f (diff)
downloadCMake-5bf1c5cce17fe76727ea4487fd500d7f9a4b5da4.zip
CMake-5bf1c5cce17fe76727ea4487fd500d7f9a4b5da4.tar.gz
CMake-5bf1c5cce17fe76727ea4487fd500d7f9a4b5da4.tar.bz2
Help: Document add_custom_command PRE_BUILD/PRE_LINK for exe/lib only (#15059)
State explicitly that the PRE_LINK mode is not for targets created by the add_custom_target command. The existing wording for PRE_BUILD being treated as PRE_LINK by non-VS generators will now imply this restriction for PRE_BUILD too.
Diffstat (limited to 'Help/command/add_custom_command.rst')
-rw-r--r--Help/command/add_custom_command.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst
index 48e2a5d..130f5c2 100644
--- a/Help/command/add_custom_command.rst
+++ b/Help/command/add_custom_command.rst
@@ -159,5 +159,7 @@ of the following is specified:
``PRE_LINK``
Run after sources have been compiled but before linking the binary
or running the librarian or archiver tool of a static library.
+ This is not defined for targets created by the
+ :command:`add_custom_target` command.
``POST_BUILD``
Run after all other rules within the target have been executed.