From bc52b483cd70b3e876d1cfd68e5ceee42de1ae3e Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Wed, 6 May 2020 16:05:22 +0200 Subject: [PATCH] CMakeLists.txt: Fix location of coap_config.h The auto-generated file coap_config.h needs to be in the top-level build directory. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7637ffc..385c38bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -386,7 +386,7 @@ endif(ENABLE_TCP) configure_file(${CMAKE_CURRENT_LIST_DIR}/include/coap2/coap.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/coap2/coap.h) configure_file(${CMAKE_CURRENT_LIST_DIR}/include/coap2/coap_config.h.in - ${CMAKE_CURRENT_BINARY_DIR}/include/coap2/coap_config.h) + ${CMAKE_CURRENT_BINARY_DIR}/coap_config.h) # # sources @@ -451,6 +451,7 @@ target_sources( target_include_directories( ${COAP_LIBRARY_NAME} PUBLIC # config headers are generated during configuration time + $ $ $ $