Skip to content

Commit b39f8bd

Browse files
ZhaoxiangJinkartben
authored andcommitted
modules: hal_nxp: Fix bt_controller cmake load issue
- In middleware/CMakeLists.txt, using add_subdirectory() to load the cmakelists.txt under bt_controller will result in the bt_controller directory not being found correctly, because the starting point of the query is mcux-sdk-ng/CMakeLists.txt. Need to add ${CMAKE_CURRENT_LIST_DIR} to bt_controller to correctly locate the folder. Signed-off-by: Zhaoxiang Jin <[email protected]>
1 parent d1b79aa commit b39f8bd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/hal_nxp/mcux/mcux-sdk-ng/middleware/middleware.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,4 @@ add_subdirectory(${MCUX_SDK_NG_DIR}/middleware/usb
4040
${CMAKE_CURRENT_BINARY_DIR}/usb
4141
)
4242

43-
if(CONFIG_BT_H4_NXP_CTLR)
44-
add_subdirectory(bt_controller)
45-
endif()
43+
add_subdirectory_ifdef(CONFIG_BT_H4_NXP_CTLR ${CMAKE_CURRENT_LIST_DIR}/bt_controller)

0 commit comments

Comments
 (0)