From 72e6df51de5a766889fedcb9970dedd7fcfda6e8 Mon Sep 17 00:00:00 2001 From: mattprost Date: Fri, 29 Apr 2022 14:47:09 -0500 Subject: cmake: Add support for fedora rpm versioning Adds cmake option for replacing dashes in the UHD Component version with underscores. This is necessary as Fedora package management is now enforcing the format -- for all rpm builds, so dashes in the UHD_VERSION from dev branches is not supported. Signed-off-by: mattprost --- host/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'host/CMakeLists.txt') diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 3a523ad5d..99dd17fe7 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -98,6 +98,7 @@ endif() # Packaging Variables ######################################################################## +option(UNDERSCORE_UHD_VERSION "Replace dashes in uhd version with underscores" OFF) set(LIBUHD_PKG ${LIBUHD_PKG} CACHE BOOL "Build Debian libuhd003 package") set(LIBUHDDEV_PKG ${LIBUHDDEV_PKG} CACHE BOOL "Build Debian libuhd-dev package") set(UHDHOST_PKG ${UHDPOST_PKG} CACHE BOOL "Build Debian uhd-host package") -- cgit v1.2.3