diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-03-22 13:36:53 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-03-22 14:36:03 -0700 |
commit | 0f943c9c8456d1f366b3d7a03047d6805c07be5d (patch) | |
tree | 03cbe357e93f883db5de296dfcba2c8e8589cd30 | |
parent | 2ea1f108b9dc88e12c7d565045d7279fabf4fcbd (diff) | |
download | uhd-0f943c9c8456d1f366b3d7a03047d6805c07be5d.tar.gz uhd-0f943c9c8456d1f366b3d7a03047d6805c07be5d.tar.bz2 uhd-0f943c9c8456d1f366b3d7a03047d6805c07be5d.zip |
cmake: Allow to override patch-part of version string
-rw-r--r-- | host/cmake/Modules/UHDVersion.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/cmake/Modules/UHDVersion.cmake b/host/cmake/Modules/UHDVersion.cmake index 54af40676..74066e368 100644 --- a/host/cmake/Modules/UHDVersion.cmake +++ b/host/cmake/Modules/UHDVersion.cmake @@ -34,6 +34,10 @@ SET(UHD_VERSION_DEVEL TRUE) ######################################################################## # If we're on a development branch, we skip the patch version ######################################################################## +IF(DEFINED UHD_VERSION_PATCH_OVERRIDE) + SET(UHD_VERSION_DEVEL FALSE) + SET(UHD_VERSION_PATCH ${UHD_VERSION_PATCH_OVERRIDE}) +ENDIF(DEFINED UHD_VERSION_PATCH_OVERRIDE) IF(NOT DEFINED UHD_VERSION_DEVEL) SET(UHD_VERSION_DEVEL FALSE) ENDIF(NOT DEFINED UHD_VERSION_DEVEL) |