mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00

In a per-component installation the generated installation scripts are invoked once for each component. Per default custom installation script code added by install(CODE|SCRIPT) only runs for one specific component in this context. The new ALL_COMPONENTS option allows custom script code to be run once for each component being installed.
6 lines
128 B
CMake
6 lines
128 B
CMake
install(
|
|
SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/install_script.cmake"
|
|
CODE "write_empty_file(empty2.txt)"
|
|
ALL_COMPONENTS
|
|
)
|