From 13951b43c22ffe5bad531c2d7e5d22d540e82118 Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Mon, 31 May 2021 10:58:14 -0500 Subject: [PATCH] set PICO_TINYUSB_PATH for when building from within tinyusb without pico-sdk/tinyusb submodule --- hw/bsp/rp2040/family.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake index cc9bf65b..cb9d8094 100644 --- a/hw/bsp/rp2040/family.cmake +++ b/hw/bsp/rp2040/family.cmake @@ -20,6 +20,10 @@ if (NOT TARGET _rp2040_family_inclusion_marker) set(TOP "../../..") get_filename_component(TOP "${TOP}" REALPATH) + if (NOT PICO_TINYUSB_PATH) + set(PICO_TINYUSB_PATH ${TOP}) + endif() + # tinyusb_additions will hold our extra settings libraries add_library(tinyusb_additions INTERFACE)