From 1a1dd31089d380a0f069151ea48466c62b653b17 Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Wed, 19 Aug 2020 23:49:05 +0800 Subject: [PATCH] [cmake] use OT_CONFIG for OPENTHREAD_CONFIG_FILE (#5421) OT_CONFIG was used to specify a customized OpenThread core config file which is only included by OpenThread core library. This commit changes the behavior so that it specifies the OPENTHREAD_CONFIG_FILE which is used by all components of OpenThread including the core library. --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e89e1f59..3963597c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,10 +123,10 @@ if(OT_LOG_OUTPUT) message(STATUS "Log output: ${OT_LOG_OUTPUT}") endif() -# OT_CONFIG allows users to specify the path to OpenThread project core +# OT_CONFIG allows users to specify the path to a customized OpenThread # config header file. The default value of this parameter is empty string. # When not specified by user (value is ""), a platform cmake file may -# choose to change this variable to provide its own core config header +# choose to change this variable to provide its own OpenThread config header # file instead. set(OT_CONFIG "" CACHE STRING "OpenThread project-specific config header file chosen by user at configure time") @@ -144,8 +144,8 @@ elseif(OT_PLATFORM) endif() if(OT_CONFIG) - target_compile_definitions(ot-config INTERFACE "OPENTHREAD_PROJECT_CORE_CONFIG_FILE=\"${OT_CONFIG}\"") - message(STATUS "Project core config: \"${OT_CONFIG}\"") + target_compile_definitions(ot-config INTERFACE "OPENTHREAD_CONFIG_FILE=\"${OT_CONFIG}\"") + message(STATUS "OpenThread Config File: \"${OT_CONFIG}\"") endif() target_compile_definitions(ot-config INTERFACE ${OT_PLATFORM_DEFINES})