mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 19:27:46 +00:00
[cmake] move generated header file to PROJECT_BINARY_DIR (#4112)
Credit to Robert Lubos for the suggestion.
This commit is contained in:
@@ -57,6 +57,7 @@ if(NOT OT_PLATFORM IN_LIST OT_EXAMPLE_PLATFORMS)
|
||||
message(FATAL_ERROR "Platform unknown: ${OT_PLATFORM}")
|
||||
endif()
|
||||
|
||||
list(APPEND OT_PUBLIC_INCLUDES ${PROJECT_BINARY_DIR}/etc/cmake)
|
||||
list(APPEND OT_PUBLIC_INCLUDES ${PROJECT_SOURCE_DIR}/etc/cmake)
|
||||
list(APPEND OT_PUBLIC_INCLUDES ${PROJECT_SOURCE_DIR}/include)
|
||||
if(NOT OT_PLATFORM MATCHES "none")
|
||||
|
||||
@@ -32,4 +32,4 @@ check_function_exists("strlcat" HAVE_STRLCAT)
|
||||
check_function_exists("strlcpy" HAVE_STRLCPY)
|
||||
check_function_exists("strnlen" HAVE_STRNLEN)
|
||||
|
||||
configure_file(${PROJECT_SOURCE_DIR}/etc/cmake/openthread-config-generic.h.in ${PROJECT_SOURCE_DIR}/etc/cmake/openthread-config-generic.h)
|
||||
configure_file(${PROJECT_SOURCE_DIR}/etc/cmake/openthread-config-generic.h.in ${PROJECT_BINARY_DIR}/etc/cmake/openthread-config-generic.h)
|
||||
|
||||
Reference in New Issue
Block a user