Skip to content

Commit

Permalink
Remove check for GCC version in usb dual example (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
lurch authored Aug 29, 2024
1 parent 6d833bc commit 7e77a0c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions usb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ else ()
message("Skipping TinyUSB host examples as TinyUSB is unavailable")
endif ()
if (TARGET tinyusb_pico_pio_usb)
if ((NOT CMAKE_C_COMPILER_ID STREQUAL "GNU") OR CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 11.3)
message("Skipping TinyUSB dual examples, as TinyUSB hw/mcu/raspberry_pi/Pico-PIO-USB does not currently compile on non GCC or GCC 11.3 or greater")
else()
add_subdirectory(dual)
endif()
add_subdirectory(dual)
else ()
message("Skipping TinyUSB dual examples, as TinyUSB hw/mcu/raspberry_pi/Pico-PIO-USB submodule unavailable")
endif ()
endif ()

0 comments on commit 7e77a0c

Please sign in to comment.