mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-03-14 04:18:33 +00:00
Fix some header dependencies in bluetooth (#1294)
If you just want to link to pico_btstack_flash_bank_headers to include the header file you also have to link to pico_btstack_base_headers. ENABLE_CLASSIC and ENABLE_BLE are used in header files so should be added by the headers library Fixes #1271
This commit is contained in:
parent
18479e0300
commit
bc7d9ce95a
@ -94,7 +94,7 @@ if (EXISTS ${PICO_BTSTACK_PATH}/${BTSTACK_TEST_PATH})
|
||||
pico_mirrored_target_link_libraries(pico_btstack_ble INTERFACE
|
||||
pico_btstack_base
|
||||
)
|
||||
target_compile_definitions(pico_btstack_ble INTERFACE
|
||||
target_compile_definitions(pico_btstack_ble_headers INTERFACE
|
||||
ENABLE_BLE=1
|
||||
)
|
||||
|
||||
@ -147,7 +147,7 @@ if (EXISTS ${PICO_BTSTACK_PATH}/${BTSTACK_TEST_PATH})
|
||||
pico_mirrored_target_link_libraries(pico_btstack_classic INTERFACE
|
||||
pico_btstack_base
|
||||
)
|
||||
target_compile_definitions(pico_btstack_classic INTERFACE
|
||||
target_compile_definitions(pico_btstack_classic_headers INTERFACE
|
||||
ENABLE_CLASSIC=1
|
||||
)
|
||||
|
||||
@ -156,6 +156,7 @@ if (EXISTS ${PICO_BTSTACK_PATH}/${BTSTACK_TEST_PATH})
|
||||
${CMAKE_CURRENT_LIST_DIR}/btstack_flash_bank.c
|
||||
)
|
||||
target_include_directories(pico_btstack_flash_bank_headers INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
|
||||
pico_mirrored_target_link_libraries(pico_btstack_flash_bank INTERFACE pico_btstack_base)
|
||||
|
||||
pico_add_library(pico_btstack_run_loop_async_context NOFLAG)
|
||||
target_sources(pico_btstack_run_loop_async_context INTERFACE
|
||||
|
Loading…
x
Reference in New Issue
Block a user