move pico_sdk_import.cmake to a cmake subdir
This commit is contained in:
parent
2bac8cd99e
commit
16ce0e9c8b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue