diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2012-04-12 10:37:54 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-04-13 07:48:23 -0700 |
commit | 44b68ee80adbfc70869a5fc20ec93c4843f039e0 (patch) | |
tree | d96eb69c2818461ce2fbc5ddd4a441a517b7a771 /host | |
parent | 34627f1c7780d8c8578964c6594fef7a6640e727 (diff) | |
download | uhd-44b68ee80adbfc70869a5fc20ec93c4843f039e0.tar.gz uhd-44b68ee80adbfc70869a5fc20ec93c4843f039e0.tar.bz2 uhd-44b68ee80adbfc70869a5fc20ec93c4843f039e0.zip |
cmake: UHDVersion.cmake gets rid of git commit number if 'release' is specified in UHD_RELEASE_MODE
Diffstat (limited to 'host')
-rw-r--r-- | host/cmake/Modules/UHDVersion.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/host/cmake/Modules/UHDVersion.cmake b/host/cmake/Modules/UHDVersion.cmake index 734ef97e6..13d952353 100644 --- a/host/cmake/Modules/UHDVersion.cmake +++ b/host/cmake/Modules/UHDVersion.cmake @@ -68,4 +68,8 @@ IF(UHD_RELEASE_MODE) ENDIF() ######################################################################## -SET(UHD_VERSION "${UHD_VERSION_MAJOR}.${UHD_VERSION_MINOR}.${UHD_VERSION_PATCH}-${UHD_GIT_COUNT}-${UHD_GIT_HASH}") +IF(UHD_RELEASE_MODE STREQUAL "release") + SET(UHD_VERSION "${UHD_VERSION_MAJOR}.${UHD_VERSION_MINOR}.${UHD_VERSION_PATCH}-${UHD_GIT_HASH}") +ELSE() + SET(UHD_VERSION "${UHD_VERSION_MAJOR}.${UHD_VERSION_MINOR}.${UHD_VERSION_PATCH}-${UHD_GIT_COUNT}-${UHD_GIT_HASH}") +ENDIF() |