mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
5fc19e7137
Refactor CPackWixConfig.cmake so that it complains about unknown CPack components. This would prevent missing components,or discrepancy between MSI and ZIP content, whenever new components are added or renamed. Also, remove some old stuff, and use macros add_component_group() and add_component() to reduce the verbosity.
12 lines
431 B
CMake
12 lines
431 B
CMake
INCLUDE(CPackConfig.cmake)
|
|
SET(CPACK_GENERATOR ZIP)
|
|
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
|
|
set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)
|
|
SET(CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY ON)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/ComponentsIgnore.cmake)
|
|
FOREACH(it ${COMPONENTS_IGNORE})
|
|
list(FIND CPACK_COMPONENTS_ALL "${it}" index)
|
|
IF(index GREATER 0)
|
|
LIST(REMOVE_AT CPACK_COMPONENTS_ALL ${index})
|
|
ENDIF()
|
|
ENDFOREACH()
|