Debian: Force Bluez version in package dependency

pull/32/head
Olivier Martin 2017-07-02 15:44:19 +02:00
parent c890f64dd9
commit 6361b818e5
1 changed files with 5 additions and 0 deletions

View File

@ -117,6 +117,11 @@ execute_process(COMMAND dpkg --print-architecture OUTPUT_VARIABLE CPACK_DEBIAN_P
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libglib2.0-0")
# Bluez DBus API changed from v5.40
if (GATTLIB_DBUS AND (BLUEZ_VERSION_MAJOR EQUAL 5) AND (BLUEZ_VERSION_MINOR GREATER 39))
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, bluez (>= 5.40)")
endif()
#
# List of file to install
#