ExternalProject: Add INSTALL_BYPRODUCTS option

Add an `INSTALL_BYPRODUCTS` option to `ExternalProject_Add` that can
be used to declare that files are `BYPRODUCTS` of the ExternalProject
install step.

This is often required by the Ninja generator to explicitly declare
dependencies. Previously, many users used `BUILD_BYPRODUCTS`, even if
their files were created by the install step, not the build step.

This commit essentially just copies the code for `BUILD_BYPRODUCTS`.

Fixes: #24120
Fixes: #23056
This commit is contained in:
Alois Klink
2022-11-03 15:40:30 +00:00
parent 6d6baffb85
commit 8c6b2928f4
4 changed files with 54 additions and 0 deletions
@@ -0,0 +1,6 @@
ExternalProject-INSTALL_BYPRODUCTS
----------------------------------
* The :module:`ExternalProject` module :command:`ExternalProject_Add` command
gained an ``INSTALL_BYPRODUCTS`` option to specify files generated by the
"install" step.