aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2022-04-22 16:13:14 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2022-06-10 13:24:03 -0500
commitb50e7c7fcdead9ec500fe3cf518e0a99463a2d73 (patch)
treed99d6e6745aefd22afb6da7018634daf57e1dea4 /host
parentd18bf6020b4885c5604420e855d465c9e76b31d0 (diff)
downloaduhd-b50e7c7fcdead9ec500fe3cf518e0a99463a2d73.tar.gz
uhd-b50e7c7fcdead9ec500fe3cf518e0a99463a2d73.tar.bz2
uhd-b50e7c7fcdead9ec500fe3cf518e0a99463a2d73.zip
cmake: Cache UHD_VERSION in all cases
This outputs the variable in the CMakeCache, so that we can scrape the version later for building package Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to 'host')
-rw-r--r--host/cmake/Modules/UHDVersion.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/cmake/Modules/UHDVersion.cmake b/host/cmake/Modules/UHDVersion.cmake
index f4b9f6004..2261bf357 100644
--- a/host/cmake/Modules/UHDVersion.cmake
+++ b/host/cmake/Modules/UHDVersion.cmake
@@ -137,9 +137,9 @@ endif()
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}")
+ set(UHD_VERSION "${UHD_VERSION_MAJOR}.${UHD_VERSION_API}.${UHD_VERSION_ABI}.${UHD_VERSION_PATCH}-${UHD_GIT_HASH}" CACHE STRING "")
else()
- set(UHD_VERSION "${UHD_VERSION_MAJOR}.${UHD_VERSION_API}.${UHD_VERSION_ABI}.${UHD_VERSION_PATCH}-${UHD_GIT_COUNT}-${UHD_GIT_HASH}")
+ set(UHD_VERSION "${UHD_VERSION_MAJOR}.${UHD_VERSION_API}.${UHD_VERSION_ABI}.${UHD_VERSION_PATCH}-${UHD_GIT_COUNT}-${UHD_GIT_HASH}" CACHE STRING "")
endif()
if(DEFINED UHD_ABI_VERSION)
set(UHD_ABI_VERSION "${UHD_ABI_VERSION}"