From 15141cde23c32c9347272a2b9a31b5da96ad2bc8 Mon Sep 17 00:00:00 2001 From: Robert Lubos Date: Wed, 29 Sep 2021 21:36:05 +0200 Subject: [PATCH] [tcp] apply ot-config compile options (#7048) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- third_party/tcplp/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/third_party/tcplp/CMakeLists.txt b/third_party/tcplp/CMakeLists.txt index 5032a3a52..06323f4c6 100644 --- a/third_party/tcplp/CMakeLists.txt +++ b/third_party/tcplp/CMakeLists.txt @@ -44,7 +44,11 @@ target_include_directories(${tcplp_static_target} ${CMAKE_CURRENT_SOURCE_DIR}/lib PRIVATE ${OT_PUBLIC_INCLUDES} - $ +) + +target_link_libraries(${tcplp_static_target} + PRIVATE + ot-config ) # TCPlp calls functions that are defined by the core OpenThread (like