From 4ff2d85f3368d17ba89b0ba043809723d0521f67 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Thu, 29 Apr 2021 13:45:47 +0200 Subject: [PATCH] CMakeLists.txt: fix include path for coap-rd coap-rd uses uthash.h from the internal libcoap API. Therefore, "include/coap3" is additionally passed as include path for target coap-rd. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8e882ee..5a9fcff4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -551,6 +551,9 @@ if(ENABLE_EXAMPLES) PUBLIC ${PROJECT_NAME}::${COAP_LIBRARY_NAME}) add_executable(coap-rd ${CMAKE_CURRENT_LIST_DIR}/examples/coap-rd.c) + target_include_directories(coap-rd + PRIVATE + $) target_link_libraries(coap-rd PUBLIC ${PROJECT_NAME}::${COAP_LIBRARY_NAME}) add_executable(coap-server ${CMAKE_CURRENT_LIST_DIR}/examples/coap-server.c)