diff options
author | Craig Scott <craig.scott@crascit.com> | 2019-07-22 11:03:13 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-07-22 11:04:00 (GMT) |
commit | 9e420754988caa86ebe8835b8fe2d24ff380a59e (patch) | |
tree | 3575907714cd9a1a5d97063840012a1ed0e41530 /Modules | |
parent | f4131e4e1b5ac9ea8940a04b81e7b2ef2fba5d3f (diff) | |
parent | 5f96601675b7b4c1b8d609f31ce39ce35a96a1a5 (diff) | |
download | CMake-9e420754988caa86ebe8835b8fe2d24ff380a59e.zip CMake-9e420754988caa86ebe8835b8fe2d24ff380a59e.tar.gz CMake-9e420754988caa86ebe8835b8fe2d24ff380a59e.tar.bz2 |
Merge topic 'cpack-install-scripts'
5f96601675 CPack: Introduce CPACK_INSTALL_SCRIPTS variable
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3531
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CPack.cmake | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake index c9008db..8a6a712 100644 --- a/Modules/CPack.cmake +++ b/Modules/CPack.cmake @@ -325,7 +325,21 @@ The following variables are for advanced uses of CPack: .. variable:: CPACK_INSTALL_COMMANDS - Extra commands to install components. + Extra commands to install components. The environment variable + ``CMAKE_INSTALL_PREFIX`` is set to the temporary install directory + during execution. + +.. variable:: CPACK_INSTALL_SCRIPTS + + Extra CMake scripts executed by CPack during its local staging + installation, which is done right before packaging the files. + The scripts are not called by a standalone install (e.g.: ``make install``). + For every script, the following variables will be set: + :variable:`CMAKE_CURRENT_SOURCE_DIR`, :variable:`CMAKE_CURRENT_BINARY_DIR` + and :variable:`CMAKE_INSTALL_PREFIX` (which is set to the staging install + directory). The singular form ``CMAKE_INSTALL_SCRIPT`` is supported as + an alternative variable for historical reasons, but its value is ignored if + ``CMAKE_INSTALL_SCRIPTS`` is set and a warning will be issued. .. variable:: CPACK_INSTALLED_DIRECTORIES |