diff options
author | Brad King <brad.king@kitware.com> | 2022-06-04 12:11:36 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-06-04 12:11:49 (GMT) |
commit | c2b1534b779f03e7b7281b76e4a9b8d8d25af6b6 (patch) | |
tree | 0e64a06849b5ed50b6285b3e8109947980c650df | |
parent | cc2c5d4eb536b220421835ed2eb40729337fd53a (diff) | |
parent | 8cf8f4d13b18ad28cc33dbc765a095dcf679391b (diff) | |
download | CMake-c2b1534b779f03e7b7281b76e4a9b8d8d25af6b6.zip CMake-c2b1534b779f03e7b7281b76e4a9b8d8d25af6b6.tar.gz CMake-c2b1534b779f03e7b7281b76e4a9b8d8d25af6b6.tar.bz2 |
Merge topic 'doc-add_custom_command-TARGET'
8cf8f4d13b Help: State behavior for add_custom_command(TARGET) without event type
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7326
-rw-r--r-- | Help/command/add_custom_command.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/command/add_custom_command.rst b/Help/command/add_custom_command.rst index 4fe9326..9e60d2d 100644 --- a/Help/command/add_custom_command.rst +++ b/Help/command/add_custom_command.rst @@ -425,6 +425,11 @@ of the following is specified: ``POST_BUILD`` Run after all other rules within the target have been executed. +Projects should always specify one of the above three keywords when using +the ``TARGET`` form. For backward compatibility reasons, ``POST_BUILD`` is +assumed if no such keyword is given, but projects should explicitly provide +one of the keywords to make clear the behavior they expect. + .. note:: Because generator expressions can be used in custom commands, it is possible to define ``COMMAND`` lines or whole custom commands |