Skip to content

Commit db65c4b

Browse files
committed
Examples: Exclude encoder wheel clock example from RP2350 builds.
Borrows a check against the hardware_rtc target from Pico Examples.
1 parent 6e73375 commit db65c4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/breakout_encoder_wheel/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
add_subdirectory(buttons)
22
add_subdirectory(chase_game)
3+
if (TARGET hardware_rtc)
34
add_subdirectory(clock)
5+
else()
6+
message("Skipping breakout_encoder_wheel/clock example as hardware_rtc is unavailable on this platform")
7+
endif()
48
add_subdirectory(colour_picker)
59
add_subdirectory(encoder)
610
add_subdirectory(gpio_pwm)

0 commit comments

Comments
 (0)