Set common E&F releases for CUS and CUSM
This commit is contained in:
@@ -16,13 +16,16 @@ add_library(oran_fhlib_5g MODULE
|
|||||||
oran-init.c
|
oran-init.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(E_VERSION 5.1.5)
|
||||||
|
set(F_VERSION 6.1.2)
|
||||||
|
|
||||||
find_package(xran REQUIRED)
|
find_package(xran REQUIRED)
|
||||||
if(xran_VERSION VERSION_EQUAL 5.1.5)
|
if(xran_VERSION VERSION_EQUAL E_VERSION)
|
||||||
target_compile_definitions(oran_fhlib_5g PRIVATE E_RELEASE)
|
target_compile_definitions(oran_fhlib_5g PRIVATE E_RELEASE)
|
||||||
elseif(xran_VERSION VERSION_EQUAL 6.1.2)
|
elseif(xran_VERSION VERSION_EQUAL F_VERSION)
|
||||||
target_compile_definitions(oran_fhlib_5g PRIVATE F_RELEASE)
|
target_compile_definitions(oran_fhlib_5g PRIVATE F_RELEASE)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Found xran version ${xran_VERSION} but needed 5.1.5 (E release) or 6.1.2 (F release)")
|
message(FATAL_ERROR "Found xran version ${xran_VERSION} but needed ${E_VERSION} (E release) or ${F_VERSION} (F release)")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Ignore xran-specific warning: we don't care/can't change the following warning, so suppress
|
# Ignore xran-specific warning: we don't care/can't change the following warning, so suppress
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ add_library(oran_fhlib_5g_mplane MODULE
|
|||||||
)
|
)
|
||||||
add_dependencies(oran_fhlib_5g_mplane oran_fhlib_5g)
|
add_dependencies(oran_fhlib_5g_mplane oran_fhlib_5g)
|
||||||
|
|
||||||
if(xran_VERSION VERSION_EQUAL 5.1.4)
|
if(xran_VERSION VERSION_EQUAL E_VERSION)
|
||||||
target_compile_definitions(oran_fhlib_5g_mplane PRIVATE E_RELEASE)
|
target_compile_definitions(oran_fhlib_5g_mplane PRIVATE E_RELEASE)
|
||||||
elseif(xran_VERSION VERSION_EQUAL 6.1.1)
|
elseif(xran_VERSION VERSION_EQUAL F_VERSION)
|
||||||
target_compile_definitions(oran_fhlib_5g_mplane PRIVATE F_RELEASE)
|
target_compile_definitions(oran_fhlib_5g_mplane PRIVATE F_RELEASE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user