Change add_compile_definitions to target_compile_definitions, following change...

Change add_compile_definitions to target_compile_definitions, following change in CMakeLists.txt loading order change, to properly apply needed preprocessor definitions to `nr-softmodem` target
parent 1fb15c45
......@@ -24,10 +24,8 @@ if (OAI_AERIAL)
message(STATUS " nvlog library found in ${NVLOG_LIB}")
endif ()
add_compile_definitions(ENABLE_L2_SLT_RSP)
add_compile_definitions(FAPI_BYTE_ORDERING_BIG_ENDIAN)
add_compile_definitions(ENABLE_AERIAL)
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")
endif()
\ No newline at end of file
endif()
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