From be5ca9780c872826121ee71de0d2245ac6bed795 Mon Sep 17 00:00:00 2001 From: Martin Date: Sat, 15 Mar 2025 22:03:11 -0700 Subject: [PATCH] Update CMakeLists.txt FIX the error: CMake Error at CMakeLists.txt:277 (include):include could not find requested file: ENV{PICO_SDK_PATH}/pico_sdk_init.cmake --- Firmware/RP2040/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/RP2040/CMakeLists.txt b/Firmware/RP2040/CMakeLists.txt index 946f0bdb..e4b69e49 100644 --- a/Firmware/RP2040/CMakeLists.txt +++ b/Firmware/RP2040/CMakeLists.txt @@ -274,7 +274,7 @@ if(NOT EN_BLUETOOTH) add_compile_definitions(PICO_XOSC_STARTUP_DELAY_MULTIPLIER=64) endif() -include(${PICO_SDK_PATH}/pico_sdk_init.cmake) +include($ENV{PICO_SDK_PATH}/pico_sdk_init.cmake) message("PICO_SDK_VERSION_STRING: ${PICO_SDK_VERSION_STRING}") if(PICO_SDK_VERSION_STRING VERSION_LESS "${PICOSDK_VERSION_TAG}") @@ -390,4 +390,4 @@ endif() set_target_properties(${FW_NAME} PROPERTIES OUTPUT_NAME ${EXE_FILENAME}) -pico_add_extra_outputs(${FW_NAME}) \ No newline at end of file +pico_add_extra_outputs(${FW_NAME})