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 <Zhaoxiang.Jin_1@nxp.com>
This commit is contained in:
parent
d1b79aa5bc
commit
b39f8bdd9c
1 changed files with 1 additions and 3 deletions
|
@ -40,6 +40,4 @@ add_subdirectory(${MCUX_SDK_NG_DIR}/middleware/usb
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/usb
|
${CMAKE_CURRENT_BINARY_DIR}/usb
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CONFIG_BT_H4_NXP_CTLR)
|
add_subdirectory_ifdef(CONFIG_BT_H4_NXP_CTLR ${CMAKE_CURRENT_LIST_DIR}/bt_controller)
|
||||||
add_subdirectory(bt_controller)
|
|
||||||
endif()
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue