Skip to content

Commit

Permalink
Fix/Remove too specific CPack packaging configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ekilmer committed Aug 18, 2022
1 parent 83b4e2f commit cc4d7d2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmake/packaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ set(CPACK_PACKAGE_NAME "sleigh")
set(CPACK_PACKAGE_VENDOR "Trail of Bits")
set(CPACK_PACKAGE_CONTACT "[email protected]")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://github.com/lifting-bits/sleigh")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${PROJECT_VERSION}-${PACKAGE_VERSION}.x86_64")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${PROJECT_VERSION}-${PACKAGE_VERSION}.${CMAKE_SYSTEM_PROCESSOR}")
set(CPACK_PACKAGE_RELOCATABLE ON)

set(CPACK_GENERATOR "TGZ")
Expand All @@ -33,7 +33,6 @@ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
set(CPACK_RPM_PACKAGE_RELEASE_DIST "${PACKAGE_VERSION}")
set(CPACK_RPM_PACKAGE_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION_SUMMARY}")
set(CPACK_RPM_PACKAGE_GROUP "default")
set(CPACK_RPM_PACKAGE_REQUIRES "glibc >= 2.31")

unset(dpkg_executable_path CACHE)
find_program(dpkg_executable_path "dpkg")
Expand All @@ -47,8 +46,6 @@ if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
set(CPACK_DEBIAN_PACKAGE_PRIORITY "extra")
set(CPACK_DEBIAN_PACKAGE_SECTION "default")
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "${CPACK_PACKAGE_HOMEPAGE_URL}")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc-dev-bin (>=2.31)")

endif()

include(CPack)

0 comments on commit cc4d7d2

Please sign in to comment.