diff --git a/CMakeLists.txt b/CMakeLists.txt index 59c958630..6e1ecfef4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,11 @@ function(add_subdirectory_exclude_platforms NAME) endfunction() # Add blink example -add_subdirectory_exclude_platforms(blink) +if (PICO_CYW43_SUPPORTED AND NOT TARGET pico_cyw43_arch) + message("Wi-Fi driver is not available") +else() + add_subdirectory_exclude_platforms(blink) +endif() add_subdirectory_exclude_platforms(blink_simple) # Add hello world example diff --git a/adc/CMakeLists.txt b/adc/CMakeLists.txt index 71c423541..5168ce2f3 100644 --- a/adc/CMakeLists.txt +++ b/adc/CMakeLists.txt @@ -5,7 +5,11 @@ if (TARGET hardware_adc) add_subdirectory_exclude_platforms(joystick_display) add_subdirectory_exclude_platforms(onboard_temperature) add_subdirectory_exclude_platforms(microphone_adc) - add_subdirectory_exclude_platforms(read_vsys) + if (PICO_CYW43_SUPPORTED AND NOT TARGET pico_cyw43_arch) + message("Skipping read_vsys for Pico W as support is not available") + else() + add_subdirectory_exclude_platforms(read_vsys) + endif() else() message("Skipping ADC examples as hardware_adc is unavailable on this platform") -endif() \ No newline at end of file +endif()