Skip to content

Commit

Permalink
Use fixed name for debian package file (without version)
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow committed Nov 11, 2024
1 parent 65cab4f commit fa3fbc6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cmake/cpack_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "all")


# Rename packages to kebab case
set(CPACK_DEBIAN_CORE_PACKAGE_NAME "arbitration-graphs-core")
set(CPACK_DEBIAN_GUI_PACKAGE_NAME "arbitration-graphs-gui")
set(CPACK_DEBIAN_CORE_PACKAGE_NAME "libarbitration-graphs-core-dev")
set(CPACK_DEBIAN_GUI_PACKAGE_NAME "libarbitration-graphs-gui-dev")

# Component-specific dependencies (make sure to use upper-case!)
set(CPACK_DEBIAN_CORE_PACKAGE_DEPENDS "libgoogle-glog-dev, libyaml-cpp-dev, util-caching")
set(CPACK_DEBIAN_GUI_PACKAGE_DEPENDS "arbitration-graphs-core, Crow")
set(CPACK_DEBIAN_CORE_PACKAGE_DEPENDS "libgoogle-glog-dev, libyaml-cpp-dev, libutil-caching-dev")
set(CPACK_DEBIAN_GUI_PACKAGE_DEPENDS "libarbitration-graphs-core-dev, Crow")

# Use fixed debian file names
set(CPACK_DEBIAN_CORE_FILE_NAME "${CPACK_DEBIAN_CORE_PACKAGE_NAME}.deb")
set(CPACK_DEBIAN_GUI_FILE_NAME "${CPACK_DEBIAN_GUI_PACKAGE_NAME}.deb")

# Use CMAKE_INSTALL_PREFIX for CPack install paths aswell
set(CPACK_SET_DESTDIR true)

0 comments on commit fa3fbc6

Please sign in to comment.