diff options
| author | hathach <[email protected]> | 2022-11-23 12:30:10 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-11-23 12:30:10 +0700 |
| commit | 21d552bbdff19abe3ab46b23468d719be5aa2a55 (patch) | |
| tree | 0884657931ad67482c2877119eef5eefcc4f1d7c /examples/host/cdc_msc_hid | |
| parent | 4a2e424103b0a2626a6cb464a350c68ae109cc7e (diff) | |
allow all host examples to use pico-pio-usb for rp2040
Diffstat (limited to 'examples/host/cdc_msc_hid')
| -rw-r--r-- | examples/host/cdc_msc_hid/CMakeLists.txt | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/examples/host/cdc_msc_hid/CMakeLists.txt b/examples/host/cdc_msc_hid/CMakeLists.txt index 5b44ef217..870134376 100644 --- a/examples/host/cdc_msc_hid/CMakeLists.txt +++ b/examples/host/cdc_msc_hid/CMakeLists.txt @@ -28,17 +28,18 @@ target_include_directories(${PROJECT} PUBLIC # in hw/bsp/FAMILY/family.cmake for details. family_configure_host_example(${PROJECT}) -# For rp2040, un-comment to enable pico-pio-usb -family_add_pico_pio_usb(${PROJECT}) +# For rp2040 enable pico-pio-usb +if(FAMILY STREQUAL "rp2040") + family_add_pico_pio_usb(${PROJECT}) -# due to warnings from Pico-PIO-USB -target_compile_options(${PROJECT} PUBLIC - -Wno-error=shadow - -Wno-error=cast-align - -Wno-error=cast-qual - -Wno-error=redundant-decls - -Wno-error=sign-conversion - -Wno-error=conversion - -Wno-error=sign-compare - -Wno-error=unused-function - ) + # due to warnings from Pico-PIO-USB + target_compile_options(${PROJECT} PUBLIC + -Wno-error=shadow + -Wno-error=cast-align + -Wno-error=cast-qual + -Wno-error=redundant-decls + -Wno-error=sign-conversion + -Wno-error=conversion + -Wno-error=unused-function + ) +endif() |
