Make examples friendlier for non GCC compilers and fixed slave_mem_i2c.c to compile on boards without I2C pins (#336)
This commit is contained in:
@@ -9,8 +9,8 @@ else ()
|
||||
message("Skipping TinyUSB host examples as TinyUSB is unavailable")
|
||||
endif ()
|
||||
if (TARGET tinyusb_pico_pio_usb)
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND 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 GCC 11.3 or greater")
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user