From 4aca39fdca5ca160d2294f16877db1fdc60cc6b5 Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Mon, 27 Feb 2017 10:14:27 -0800 Subject: cmake: add manual override option to UHD_VERSION --- host/cmake/Modules/UHDVersion.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/cmake') diff --git a/host/cmake/Modules/UHDVersion.cmake b/host/cmake/Modules/UHDVersion.cmake index a15d03ddf..a4ad23188 100644 --- a/host/cmake/Modules/UHDVersion.cmake +++ b/host/cmake/Modules/UHDVersion.cmake @@ -125,7 +125,9 @@ ENDIF() ######################################################################## -IF(TRIM_UHD_VERSION STREQUAL "True") +IF(DEFINED UHD_VERSION) + SET(UHD_VERSION "${UHD_VERSION}" CACHE STRING "Set UHD_VERSION to a custom value") +ELSEIF(TRIM_UHD_VERSION STREQUAL "True") SET(UHD_VERSION "${UHD_VERSION_MAJOR}.${UHD_VERSION_API}.${UHD_VERSION_ABI}.${UHD_VERSION_PATCH}-${UHD_GIT_HASH}") ELSE() SET(UHD_VERSION "${UHD_VERSION_MAJOR}.${UHD_VERSION_API}.${UHD_VERSION_ABI}.${UHD_VERSION_PATCH}-${UHD_GIT_COUNT}-${UHD_GIT_HASH}") -- cgit v1.2.3