aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake/Modules/UHDGlobalDefs.cmake
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-10-28 17:23:26 -0700
committerMartin Braun <martin.braun@ettus.com>2016-10-31 09:39:34 -0700
commitc66cb1bad0d881394f3519bd94f4693cceab4c64 (patch)
treefeaa7d26208091a73f12548703363b5cb004211c /host/cmake/Modules/UHDGlobalDefs.cmake
parentf9ef7bda990591962a740aa3ab249aee30451ed9 (diff)
downloaduhd-c66cb1bad0d881394f3519bd94f4693cceab4c64.tar.gz
uhd-c66cb1bad0d881394f3519bd94f4693cceab4c64.tar.bz2
uhd-c66cb1bad0d881394f3519bd94f4693cceab4c64.zip
cmake: Change version numbering to remove leading zeros
Diffstat (limited to 'host/cmake/Modules/UHDGlobalDefs.cmake')
-rw-r--r--host/cmake/Modules/UHDGlobalDefs.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/cmake/Modules/UHDGlobalDefs.cmake b/host/cmake/Modules/UHDGlobalDefs.cmake
index 167861402..f237126a6 100644
--- a/host/cmake/Modules/UHDGlobalDefs.cmake
+++ b/host/cmake/Modules/UHDGlobalDefs.cmake
@@ -24,9 +24,9 @@ CHECK_CXX_SYMBOL_EXISTS(log2 cmath HAVE_LOG2)
## Macros for the version number
IF(UHD_VERSION_DEVEL)
- MATH(EXPR UHD_VERSION_ADDED "1000000 * ${TRIMMED_VERSION_MAJOR} + 10000 * ${TRIMMED_VERSION_API} + 100 * ${TRIMMED_VERSION_ABI} + 99")
+ MATH(EXPR UHD_VERSION_ADDED "1000000 * ${UHD_VERSION_MAJOR} + 10000 * ${UHD_VERSION_API} + 100 * ${UHD_VERSION_ABI} + 99")
ELSE()
- MATH(EXPR UHD_VERSION_ADDED "1000000 * ${TRIMMED_VERSION_MAJOR} + 10000 * ${TRIMMED_VERSION_API} + 100 * ${TRIMMED_VERSION_ABI} + ${TRIMMED_VERSION_PATCH}")
+ MATH(EXPR UHD_VERSION_ADDED "1000000 * ${UHD_VERSION_MAJOR} + 10000 * ${UHD_VERSION_API} + 100 * ${UHD_VERSION_ABI} + ${UHD_VERSION_PATCH}")
ENDIF(UHD_VERSION_DEVEL)
ADD_DEFINITIONS(-DUHD_VERSION=${UHD_VERSION_ADDED})