CPack: Introduce CPACK_INSTALL_SCRIPTS variable

The singular name `CPACK_INSTALL_SCRIPT` has existed but was not linked
from the CPack documentation.  Also, it supported multiple values and
should have had a plural name.  Add a plural-named alternative now.
If both `CPACK_INSTALL_SCRIPTS` and `CPACK_INSTALL_SCRIPT` are set then
ignore the latter with a warning.

Signed-off-by: Alex Turbov <i.zaufi@gmail.com>
This commit is contained in:
Alex Turbov
2019-07-16 19:19:10 +03:00
parent f374ffb14b
commit 5f96601675
10 changed files with 62 additions and 24 deletions

View File

@@ -1,8 +0,0 @@
CPACK_INSTALL_SCRIPT
--------------------
Extra CMake script provided by the user.
If set this CMake script will be executed by CPack during its local
[CPack-private] installation which is done right before packaging the
files. The script is not called by e.g.: ``make install``.