Skip to content

Commit

Permalink
Simplify things a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
peterharperuk committed Aug 22, 2024
1 parent 0dc6d16 commit 50d495d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,8 @@ function(add_subdirectory_exclude_platforms NAME)
endfunction()

# Add blink example
if (PICO_CYW43_SUPPORTED) # set by PICO_BOARD=pico_w
if (NOT TARGET pico_cyw43_arch)
message("Skipping blink for Pico W as support is not available")
else()
add_subdirectory_exclude_platforms(blink)
endif()
if (PICO_CYW43_SUPPORTED AND NOT TARGET pico_cyw43_arch)
message("Skipping blink for Pico W as support is not available")
else()
add_subdirectory_exclude_platforms(blink)
endif()
Expand Down
8 changes: 2 additions & 6 deletions adc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@ if (TARGET hardware_adc)
add_subdirectory_exclude_platforms(joystick_display)
add_subdirectory_exclude_platforms(onboard_temperature)
add_subdirectory_exclude_platforms(microphone_adc)
if (PICO_CYW43_SUPPORTED) # set by PICO_BOARD=pico_w
if (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()
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()
Expand Down

0 comments on commit 50d495d

Please sign in to comment.