diff options
Diffstat (limited to 'host/Modules')
-rw-r--r-- | host/Modules/UHDPackage.cmake | 8 | ||||
-rw-r--r-- | host/Modules/UHDVersion.cmake | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/host/Modules/UHDPackage.cmake b/host/Modules/UHDPackage.cmake index ed705148a..6e0af31ba 100644 --- a/host/Modules/UHDPackage.cmake +++ b/host/Modules/UHDPackage.cmake @@ -19,6 +19,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 ######################################################################## SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Ettus Research - Universal Hardware Driver") diff --git a/host/Modules/UHDVersion.cmake b/host/Modules/UHDVersion.cmake index b0b2ae475..0061dffbc 100644 --- a/host/Modules/UHDVersion.cmake +++ b/host/Modules/UHDVersion.cmake @@ -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 |