From 6faf997b971cb2fca0190c1880fdfce2fb53e185 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Mon, 20 Nov 2017 16:08:00 +0200 Subject: [PATCH] samples: net: echo-server: Fix compilation with mbedtls The echo-server compilation failed because mbedtls config file was not found. Added suitable magic to CMakeLists.txt fixing that. Signed-off-by: Jukka Rissanen --- samples/net/echo_server/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/net/echo_server/CMakeLists.txt b/samples/net/echo_server/CMakeLists.txt index cef3872bdbf..cc205df875f 100644 --- a/samples/net/echo_server/CMakeLists.txt +++ b/samples/net/echo_server/CMakeLists.txt @@ -6,3 +6,5 @@ target_sources_ifdef(CONFIG_NET_UDP app PRIVATE src/udp.c) target_sources_ifdef(CONFIG_NET_TCP app PRIVATE src/tcp.c) include($ENV{ZEPHYR_BASE}/samples/net/common/common.cmake) + +target_link_libraries_ifdef(CONFIG_MBEDTLS app mbedTLS)