Properly add compile definitions related to aerial_lib into targets that depend on it ( ENABLE_AERIAL )

Add target_compile_definitions to L2_NR library in order to propagate #define in gnb_config.c
This commit is contained in:
Rúben Soares da Silva
2024-06-24 14:51:48 +01:00
committed by Rúben Soares Silva
parent 612e6bbc3d
commit 4384ea2b59
4 changed files with 25 additions and 18 deletions
+3
View File
@@ -2,3 +2,6 @@ add_library(nfapi_common
src/debug.c
src/nfapi.c)
target_include_directories(nfapi_common PUBLIC public_inc/)
if (OAI_AERIAL)
target_compile_definitions(nfapi_common PRIVATE FAPI_BYTE_ORDERING_BIG_ENDIAN)
endif()