summaryrefslogtreecommitdiff
path: root/Help/policy
diff options
context:
space:
mode:
authorHinell <al.neodim@gmail.com>2022-09-09 22:40:24 +0300
committerBrad King <brad.king@kitware.com>2022-09-16 10:50:46 -0400
commit00b788e85ee9ebdbf2c40ea9b71a0b1bdf07c99d (patch)
tree47ef89619b8d28c31c2af23620045666f402b712 /Help/policy
parentcabba23ab270eb5cc672c43265f9eb3cb7dda8cc (diff)
downloadcmake-00b788e85ee9ebdbf2c40ea9b71a0b1bdf07c99d.tar.gz
Help:custom_command: link policy on BYPRODUCTS
Link policy explaining BYPRODUCTS. Fixes: #23786
Diffstat (limited to 'Help/policy')
-rw-r--r--Help/policy/CMP0058.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Help/policy/CMP0058.rst b/Help/policy/CMP0058.rst
index 06cc74b5f9..a9a8f1cd25 100644
--- a/Help/policy/CMP0058.rst
+++ b/Help/policy/CMP0058.rst
@@ -71,6 +71,9 @@ every custom command dependency, even on source files, needs to
be treated this way because CMake does not have enough information
to know which files are generated as byproducts of custom commands.
+Introducing Byproducts
+^^^^^^^^^^^^^^^^^^^^^^
+
CMake 3.2 introduced the ``BYPRODUCTS`` option to the
:command:`add_custom_command` and :command:`add_custom_target`
commands. This option allows byproducts to be specified explicitly: