[cmake] print source directory (#6489)

Print source directory during cmake, which is useful to find the source
code location when OpenThread is built by other projects.
This commit is contained in:
Yakun Xu
2021-04-20 13:23:06 +08:00
committed by GitHub
parent 0eeab8844a
commit 2796615cf7

View File

@ -41,6 +41,8 @@ option(OT_MBEDTLS_THREADING "enable mbedtls threading" OFF)
add_library(ot-config INTERFACE)
message(STATUS "OpenThread Source Directory: ${PROJECT_SOURCE_DIR}")
target_include_directories(ot-config INTERFACE
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/src