CMakeLists.txt: Print version that is building to ease debugging on travis CI system

pull/37/head^2
Olivier Martin 2018-01-03 11:57:41 +01:00
parent 6ab868245e
commit 3d7802af21
1 changed files with 2 additions and 0 deletions

View File

@ -94,9 +94,11 @@ endif()
#
set(CPACK_PACKAGE_INSTALL_DIRECTORY /usr CACHE STRING "Install directory (default: /usr).")
if (ENV{TRAVIS_TAG})
message("Package Gattlib for tagged version $ENV{TRAVIS_TAG}")
set(CPACK_PACKAGE_VERSION $ENV{TRAVIS_TAG})
else()
set(CPACK_PACKAGE_VERSION 0.2-dev)
message("Package Gattlib for development version $ENV{CPACK_PACKAGE_VERSION}")
endif()
set(CPACK_PACKAGE_CONTACT "Olivier Martin <olivier@labapart.com>")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Library to access GATT information from Bluetooth Low Energy (BLE) devices")