From 2c915ce8202425f93089d88c5930e4d0163f12c9 Mon Sep 17 00:00:00 2001 From: Udo Munk Date: Mon, 9 Dec 2024 20:10:49 +0100 Subject: [PATCH] conditionally link CYW43 lib --- picosim/srcsim/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/picosim/srcsim/CMakeLists.txt b/picosim/srcsim/CMakeLists.txt index 3a323132..a887c694 100644 --- a/picosim/srcsim/CMakeLists.txt +++ b/picosim/srcsim/CMakeLists.txt @@ -105,13 +105,17 @@ target_compile_options(${PROJECT_NAME} PUBLIC -Wno-unused-parameter) target_link_libraries(${PROJECT_NAME} hardware_i2c pico_stdlib -# pico_cyw43_arch_none tinyusb_device no-OS-FatFS-SD-SDIO-SPI-RPi-Pico pico-ds3231 stdio_msc_usb ) +if(PICO_BOARD STREQUAL pico_w) +target_link_libraries(${PROJECT_NAME} + pico_cyw43_arch_none +) +endif() pico_add_extra_outputs(${PROJECT_NAME})