From 0f943c9c8456d1f366b3d7a03047d6805c07be5d Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 22 Mar 2016 13:36:53 -0700 Subject: cmake: Allow to override patch-part of version string --- host/cmake/Modules/UHDVersion.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/cmake/Modules/UHDVersion.cmake') 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) -- cgit v1.2.3