mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-09 03:23:42 +02:00
Fix emulation build.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -225,12 +225,14 @@ set(LIBRARIES
|
|||||||
)
|
)
|
||||||
|
|
||||||
set(IS_CYW43 0)
|
set(IS_CYW43 0)
|
||||||
file(READ ${PICO_SDK_PATH}/src/boards/include/boards/${PICO_BOARD}.h content)
|
if (NOT ENABLE_EMULATION)
|
||||||
string(REGEX MATCHALL "CYW43_WL_GPIO_LED_PIN" _ ${content})
|
file(READ ${PICO_SDK_PATH}/src/boards/include/boards/${PICO_BOARD}.h content)
|
||||||
if (CMAKE_MATCH_0)
|
string(REGEX MATCHALL "CYW43_WL_GPIO_LED_PIN" _ ${content})
|
||||||
message(STATUS "Found cyw43 LED:\t\t true")
|
if (CMAKE_MATCH_0)
|
||||||
set(LIBRARIES ${LIBRARIES} pico_cyw43_arch_none)
|
message(STATUS "Found cyw43 LED:\t\t true")
|
||||||
set(IS_CYW43 1)
|
set(LIBRARIES ${LIBRARIES} pico_cyw43_arch_none)
|
||||||
|
set(IS_CYW43 1)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
function(add_impl_library target)
|
function(add_impl_library target)
|
||||||
|
|||||||
Reference in New Issue
Block a user