diff options
| author | graham sanderson <[email protected]> | 2021-05-31 10:58:14 -0500 |
|---|---|---|
| committer | graham sanderson <[email protected]> | 2021-05-31 10:58:14 -0500 |
| commit | 13951b43c22ffe5bad531c2d7e5d22d540e82118 (patch) | |
| tree | 6752f847ce11ab6134c0c6f52be7f32289e59bc6 | |
| parent | 5d161b79bbf9116d36ecf4b08d24dfae1738235f (diff) | |
set PICO_TINYUSB_PATH for when building from within tinyusb without pico-sdk/tinyusb submodule
| -rw-r--r-- | hw/bsp/rp2040/family.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake index cc9bf65bd..cb9d8094a 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) |
