From: Anton Maklakov Date: Mon, 19 Nov 2018 11:04:42 +0000 (+0800) Subject: bt: Fix unit tests build with CMake X-Git-Tag: v3.3-beta1~53^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87e875756947b383b9c851110ba012b477878f52;p=esp-idf bt: Fix unit tests build with CMake --- diff --git a/components/bt/test/CMakeLists.txt b/components/bt/test/CMakeLists.txt index c8c2dda4b9..e59c45744a 100644 --- a/components/bt/test/CMakeLists.txt +++ b/components/bt/test/CMakeLists.txt @@ -1,8 +1,7 @@ -if(CONFIG_BT_ENABLED) +if(CONFIG_BT_ENABLED OR CMAKE_BUILD_EARLY_EXPANSION) set(COMPONENT_SRCDIRS ".") set(COMPONENT_ADD_INCLUDEDIRS ".") -endif() - -set(COMPONENT_REQUIRES unity nvs_flash bt) + set(COMPONENT_REQUIRES unity nvs_flash bt) -register_component() + register_component() +endif()