move pico_sdk_import.cmake to a cmake subdir

This commit is contained in:
xenia 2021-06-28 20:08:44 -04:00
parent 2bac8cd99e
commit 16ce0e9c8b
2 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if(FAMILY STREQUAL "rp2040")
if (USE_SYSTEMWIDE_PICOSDK) if (USE_SYSTEMWIDE_PICOSDK)
set(TOP "$ENV{PICO_SDK_PATH}/lib/tinyusb") set(TOP "$ENV{PICO_SDK_PATH}/lib/tinyusb")
get_filename_component(TOP "${TOP}" REALPATH) get_filename_component(TOP "${TOP}" REALPATH)
include(pico_sdk_import.cmake) include(cmake/pico_sdk_import.cmake)
else() else()
set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk) set(PICO_SDK_PATH ${TOP}/hw/mcu/raspberrypi/pico-sdk)
include(${PICO_SDK_PATH}/pico_sdk_init.cmake) include(${PICO_SDK_PATH}/pico_sdk_init.cmake)