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 <robert.schmidt@openairinterface.org>
This commit is contained in:
co-authored by
Robert Schmidt
parent
fdb6b44b05
commit
3c6644134c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user