Skip to content

Commit

Permalink
[tcp] apply ot-config compile options (openthread#7048)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rlubos authored Sep 29, 2021
1 parent dc7676a commit 15141cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion third_party/tcplp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15141cd

Please sign in to comment.