mirror of
https://github.com/fairwaves/UHD-Fairwaves.git
synced 2025-10-23 07:42:00 +00:00
uhd: setup UHD_VERSION and CPACK_PACKAGE_FILE_NAME
This commit is contained in:
@@ -18,6 +18,14 @@
|
||||
########################################################################
|
||||
INCLUDE(UHDVersion) #sets version information
|
||||
|
||||
########################################################################
|
||||
# Setup package file name
|
||||
########################################################################
|
||||
SET(CPACK_PACKAGE_FILE_NAME "UHD-${UHD_VERSION}")
|
||||
IF(DEFINED UHD_PACKAGE_SUFFIX) #append optional suffix (usually system type)
|
||||
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${UHD_PACKAGE_SUFFIX})
|
||||
ENDIF(DEFINED UHD_PACKAGE_SUFFIX)
|
||||
|
||||
########################################################################
|
||||
# Setup CPack General
|
||||
########################################################################
|
||||
|
@@ -24,6 +24,7 @@ INCLUDE(UHDPython) #requires python for parsing
|
||||
SET(UHD_VERSION_MAJOR 003) #API compatibility number
|
||||
SET(UHD_VERSION_MINOR 0) #Timestamp of git commit
|
||||
SET(UHD_VERSION_PATCH 0) #Short hash of git commit
|
||||
SET(UHD_VERSION "${UHD_VERSION_MAJOR}.${UHD_VERSION_MINOR}.${UHD_VERSION_PATCH}")
|
||||
|
||||
########################################################################
|
||||
# Find GIT to get repo information
|
||||
|
@@ -32,7 +32,7 @@ SET(CPACK_PACKAGE_CONTACT "support@ettus.com")
|
||||
SET(CPACK_PACKAGE_VERSION_MAJOR ${UHD_VERSION_MAJOR})
|
||||
SET(CPACK_PACKAGE_VERSION_MINOR ${UHD_VERSION_MINOR})
|
||||
SET(CPACK_PACKAGE_VERSION_PATCH ${UHD_VERSION_PATCH})
|
||||
SET(CPACK_PACKAGE_FILE_NAME "UHD-images-${UHD_VERSION_MAJOR}-${UHD_VERSION_MINOR}-${UHD_VERSION_PATCH}")
|
||||
SET(CPACK_PACKAGE_FILE_NAME "UHD-images-${UHD_VERSION}")
|
||||
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "all")
|
||||
INCLUDE(CPack) #include after setting vars
|
||||
MESSAGE(STATUS "Version: ${CPACK_PACKAGE_VERSION}")
|
||||
|
Reference in New Issue
Block a user