mirror of
https://github.com/reactos/CMake.git
synced 2025-01-23 20:25:34 +00:00
9db3116226
Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
23 lines
545 B
CMake
23 lines
545 B
CMake
#
|
|
# Activate component packaging
|
|
#
|
|
if(CPACK_GENERATOR MATCHES "ZIP")
|
|
set(CPACK_ARCHIVE_COMPONENT_INSTALL "ON")
|
|
endif()
|
|
|
|
if(CPACK_GENERATOR MATCHES "RPM")
|
|
set(CPACK_RPM_COMPONENT_INSTALL "ON")
|
|
set(CPACK_RPM_applications_PACKAGE_REQUIRES "mylib-libraries")
|
|
endif()
|
|
|
|
if(CPACK_GENERATOR MATCHES "DEB")
|
|
set(CPACK_DEB_COMPONENT_INSTALL "ON")
|
|
endif()
|
|
|
|
#
|
|
# Choose grouping way
|
|
#
|
|
#set(CPACK_COMPONENTS_ALL_GROUPS_IN_ONE_PACKAGE)
|
|
#set(CPACK_COMPONENTS_GROUPING)
|
|
set(CPACK_COMPONENTS_IGNORE_GROUPS 1)
|
|
#set(CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE 1) |