summaryrefslogtreecommitdiffstats
path: root/host/cmake/Modules/UHDVersion.cmake
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2013-05-10 15:07:03 -0700
committerNicholas Corgan <nick.corgan@ettus.com>2013-05-10 15:07:03 -0700
commit6524f46bc54c36f8d50d6a3aa1c17aafb0a47d75 (patch)
tree40a0cf8ec54bae728041d7304ecd841339bace81 /host/cmake/Modules/UHDVersion.cmake
parentc6dcb2b4b63841925f4863bc0adbda9b2048475a (diff)
parent4b72513a8930ec4147dab76c079afa1186e335cd (diff)
downloaduhd-6524f46bc54c36f8d50d6a3aa1c17aafb0a47d75.tar.gz
uhd-6524f46bc54c36f8d50d6a3aa1c17aafb0a47d75.tar.bz2
uhd-6524f46bc54c36f8d50d6a3aa1c17aafb0a47d75.zip
Merge branch 'maint'
Conflicts: host/tests/CMakeLists.txt
Diffstat (limited to 'host/cmake/Modules/UHDVersion.cmake')
-rw-r--r--host/cmake/Modules/UHDVersion.cmake9
1 files changed, 5 insertions, 4 deletions
diff --git a/host/cmake/Modules/UHDVersion.cmake b/host/cmake/Modules/UHDVersion.cmake
index 01cd2741e..c81e9510b 100644
--- a/host/cmake/Modules/UHDVersion.cmake
+++ b/host/cmake/Modules/UHDVersion.cmake
@@ -30,7 +30,7 @@ SET(UHD_VERSION_MINOR 005)
SET(UHD_VERSION_PATCH 003)
########################################################################
-# Set up DLL resource version numbers
+# Set up trimmed version numbers for DLL resource files and packages
########################################################################
FUNCTION(DEPAD_NUM input_num output_num)
@@ -42,9 +42,10 @@ FUNCTION(DEPAD_NUM input_num output_num)
SET(${output_num} ${depadded_num} PARENT_SCOPE)
ENDFUNCTION(DEPAD_NUM)
-DEPAD_NUM(${UHD_VERSION_MAJOR} RC_VERSION_MAJOR)
-DEPAD_NUM(${UHD_VERSION_MINOR} RC_VERSION_MINOR)
-DEPAD_NUM(${UHD_VERSION_PATCH} RC_VERSION_PATCH)
+DEPAD_NUM(${UHD_VERSION_MAJOR} TRIMMED_VERSION_MAJOR)
+DEPAD_NUM(${UHD_VERSION_MINOR} TRIMMED_VERSION_MINOR)
+DEPAD_NUM(${UHD_VERSION_PATCH} TRIMMED_VERSION_PATCH)
+SET(TRIMMED_UHD_VERSION "${TRIMMED_VERSION_MAJOR}.${TRIMMED_VERSION_MINOR}.${TRIMMED_VERSION_PATCH}")
########################################################################
# Version information discovery through git log