From 3c6644134cbc2d32fd948ff6899a5c01d0539d89 Mon Sep 17 00:00:00 2001 From: Teodora Date: Fri, 27 Feb 2026 16:16:18 +0100 Subject: [PATCH] Use VERSION_* binary test for checking the xran library E release An alternative would have been: if(xran_VERSION MATCHES "^5\.*") Co-authored-by: Robert Schmidt --- radio/fhi_72/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/fhi_72/CMakeLists.txt b/radio/fhi_72/CMakeLists.txt index 0fb5605662..eb1429542d 100644 --- a/radio/fhi_72/CMakeLists.txt +++ b/radio/fhi_72/CMakeLists.txt @@ -19,7 +19,7 @@ add_library(oran_fhlib_5g MODULE set(F_VERSION 6.1.8) find_package(xran REQUIRED) -if(xran_VERSION MATCHES "5.*") +if(xran_VERSION VERSION_GREATER_EQUAL 5 AND xran_VERSION VERSION_LESS 6) message(FATAL_ERROR "xran E release not supported starting from tag 2026.w08.\nPlease switch to F version ${F_VERSION}") elseif(xran_VERSION VERSION_EQUAL F_VERSION) target_compile_definitions(oran_fhlib_5g PRIVATE F_RELEASE)