From 2796615cf7e64bc0fc633b6f8c6430dade1b466d Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Tue, 20 Apr 2021 13:23:06 +0800 Subject: [PATCH] [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. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8809ad40..cbf4b245c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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