aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake/Modules
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-01-15 18:10:20 +0100
committerMartin Braun <martin.braun@ettus.com>2015-01-15 18:10:20 +0100
commit3b2976de83609d70aff6d4c90a72773972753b97 (patch)
treeef91771368796bfaae04d7d5aea37636474498d8 /host/cmake/Modules
parent8c73c62b95e12e88a8aa68154cadc024229de6df (diff)
parentf9d5075724e833401edd8065fc05a5c0edcaef75 (diff)
downloaduhd-3b2976de83609d70aff6d4c90a72773972753b97.tar.gz
uhd-3b2976de83609d70aff6d4c90a72773972753b97.tar.bz2
uhd-3b2976de83609d70aff6d4c90a72773972753b97.zip
Merge branch 'maint'
Diffstat (limited to 'host/cmake/Modules')
-rw-r--r--host/cmake/Modules/UHDGlobalDefs.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/host/cmake/Modules/UHDGlobalDefs.cmake b/host/cmake/Modules/UHDGlobalDefs.cmake
index b4c0173ea..4edd03c6b 100644
--- a/host/cmake/Modules/UHDGlobalDefs.cmake
+++ b/host/cmake/Modules/UHDGlobalDefs.cmake
@@ -23,7 +23,11 @@ INCLUDE(CheckCXXSymbolExists)
CHECK_CXX_SYMBOL_EXISTS("log2" "cmath" HAVE_LOG2)
## Macros for the version number
-MATH(EXPR UHD_VERSION_ADDED "10000 * ${TRIMMED_VERSION_MAJOR} + 100 * ${TRIMMED_VERSION_MINOR} + ${TRIMMED_VERSION_PATCH}")
+IF(UHD_VERSION_DEVEL)
+ MATH(EXPR UHD_VERSION_ADDED "10000 * ${TRIMMED_VERSION_MAJOR} + 100 * ${TRIMMED_VERSION_MINOR} + 99")
+ELSE()
+ MATH(EXPR UHD_VERSION_ADDED "10000 * ${TRIMMED_VERSION_MAJOR} + 100 * ${TRIMMED_VERSION_MINOR} + ${TRIMMED_VERSION_PATCH}")
+ENDIF(UHD_VERSION_DEVEL)
ADD_DEFINITIONS(-DUHD_VERSION=${UHD_VERSION_ADDED})
## make sure the code knows about config.h