[tcp] apply ot-config compile options (#7048)

tcplp uses stdio.h which, for some libc implementations, can depend on
Kconfig defines.

These Kconfig defines can be included through compile options in
ot-config.

Link with ot-config to get the compile options.

Signed-off-by: Sebastian Bøe <[email protected]>
This commit is contained in:
Robert Lubos
2021-09-29 12:36:05 -07:00
committed by GitHub
parent dc7676a032
commit 15141cde23
+5 -1
View File
@@ -44,7 +44,11 @@ target_include_directories(${tcplp_static_target}
${CMAKE_CURRENT_SOURCE_DIR}/lib
PRIVATE
${OT_PUBLIC_INCLUDES}
$<TARGET_PROPERTY:ot-config,INTERFACE_INCLUDE_DIRECTORIES>
)
target_link_libraries(${tcplp_static_target}
PRIVATE
ot-config
)
# TCPlp calls functions that are defined by the core OpenThread (like