From 8782d0b8df507a0d2e1f7a12a27a76d50e0d4477 Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Tue, 1 Jun 2021 09:04:08 -0500 Subject: [PATCH] fix rp2040 examples build from local tinyusb tree --- hw/bsp/rp2040/family.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/bsp/rp2040/family.cmake b/hw/bsp/rp2040/family.cmake index cb9d8094..ee17d4d4 100644 --- a/hw/bsp/rp2040/family.cmake +++ b/hw/bsp/rp2040/family.cmake @@ -17,7 +17,7 @@ if (NOT TARGET _rp2040_family_inclusion_marker) include(${CMAKE_CURRENT_LIST_DIR}/boards/${BOARD}/board.cmake) # TOP is absolute path to root directory of TinyUSB git repo - set(TOP "../../..") + set(TOP "${CMAKE_CURRENT_LIST_DIR}/../../..") get_filename_component(TOP "${TOP}" REALPATH) if (NOT PICO_TINYUSB_PATH)