Skip to content

Commit 1d92895

Browse files
Fix check for suppress_tinyusb_warnings (raspberrypi#3170)
1 parent b686c89 commit 1d92895

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/rp2_common/tinyusb/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if (EXISTS ${PICO_TINYUSB_PATH}/${TINYUSB_TEST_PATH})
5959
# Latest TinyUSB has removed the suppress_tinyusb_warnings() function. If the function is present
6060
# we assume we want to override it to suppress more warnings; if not we will define an empty
6161
# version since SDK users may assume it exists
62-
if (TARGET suppress_tinyusb_warnings)
62+
if (COMMAND suppress_tinyusb_warnings)
6363
# Override existing suppress_tinyusb_warnings to add suppression of (falsely) reported GCC 11.2 warnings
6464
function(suppress_tinyusb_warnings)
6565
_suppress_tinyusb_warnings()

0 commit comments

Comments
 (0)