Help: Clarify add_custom_command build event execution order

Fixes: #17949
This commit is contained in:
Brad King
2018-05-02 13:19:00 -04:00
parent 5e455ac120
commit 6dd11ffbde

View File

@@ -216,10 +216,9 @@ When the command will happen is determined by which
of the following is specified: of the following is specified:
``PRE_BUILD`` ``PRE_BUILD``
Run before any other rules are executed within the target. On :ref:`Visual Studio Generators`, run before any other rules are
This is supported only on Visual Studio 9 or later. executed within the target.
For all other generators ``PRE_BUILD`` will be treated as On other generators, run just before ``PRE_LINK`` commands.
``PRE_LINK``.
``PRE_LINK`` ``PRE_LINK``
Run after sources have been compiled but before linking the binary Run after sources have been compiled but before linking the binary
or running the librarian or archiver tool of a static library. or running the librarian or archiver tool of a static library.