mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-05 01:12:55 +03:00
CMakeLists.txt: Fix location of coap_config.h
The auto-generated file coap_config.h needs to be in the top-level build directory.
This commit is contained in:
1 parent
fdffe5387a
commit
bc52b483cd
1 file changed
+2
-1
+2
-1
@@ -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
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include/>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include/coap2/>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/>
|
||||
|
||||
Reference in new issue
Block a user