diff options
Diffstat (limited to 'host/cmake/Modules/UHDVersion.cmake')
-rw-r--r-- | host/cmake/Modules/UHDVersion.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/cmake/Modules/UHDVersion.cmake b/host/cmake/Modules/UHDVersion.cmake index 2261bf357..6854ff4a9 100644 --- a/host/cmake/Modules/UHDVersion.cmake +++ b/host/cmake/Modules/UHDVersion.cmake @@ -148,4 +148,9 @@ else() set(UHD_ABI_VERSION "${UHD_VERSION_MAJOR}.${UHD_VERSION_API}.${UHD_VERSION_ABI}") endif() +if(UNDERSCORE_UHD_VERSION) + string(REPLACE "-" "_" _uhd_version $CACHE{UHD_VERSION}) + set(UHD_VERSION "${_uhd_version}" CACHE STRING "" FORCE) +endif() + set(UHD_COMPONENT "UHD") |