Move Aerial-specific compile definitions to top-level CMakeLists.txt, to...

Move Aerial-specific compile definitions to top-level CMakeLists.txt, to properly propagate through the subdirectories, following the removal of the include
parent 31910fee
......@@ -2087,6 +2087,9 @@ add_executable(nr-softmodem
${OPENAIR1_DIR}/PHY/TOOLS/phy_scope_interface.c
)
if (OAI_AERIAL)
add_compile_definitions(ENABLE_L2_SLT_RSP FAPI_BYTE_ORDERING_BIG_ENDIAN ENABLE_AERIAL)
endif()
target_link_libraries(nr-softmodem PRIVATE
-Wl,--start-group
UTIL HASHTABLE SCTP_CLIENT SCHED_LIB SCHED_RU_LIB SCHED_NR_LIB PHY_NR PHY PHY_COMMON PHY_NR_COMMON PHY_RU GTPV1U SECURITY
......
......@@ -24,7 +24,6 @@ if (OAI_AERIAL)
message(STATUS " nvlog library found in ${NVLOG_LIB}")
endif ()
target_compile_definitions(nr-softmodem PRIVATE ENABLE_L2_SLT_RSP FAPI_BYTE_ORDERING_BIG_ENDIAN ENABLE_AERIAL)
target_link_libraries(nr-softmodem PRIVATE "${NVLOG_LIB}" "${NVIPC_LIB}")
else()
message(STATUS "No Support for Aerial")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment