From 5ea49957d4105417c323556e09c30e2e3c0987e9 Mon Sep 17 00:00:00 2001 From: Juan Jose Carranza Garcia Date: Wed, 6 Dec 2023 21:52:13 -0600 Subject: [PATCH] Change PICO_EXTRAS to PICO_PLAYGROUND --- CMakeLists.txt | 1 + playground_auto_set_url.cmake | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 98b130d..98e3724 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ include(pico_sdk_import.cmake) # We also need PICO EXTRAS include(pico_extras_import.cmake) +set(PICO_PLAYGROUND_PATH ${PROJECT_SOURCE_DIR}) # Include playground_auto_set_url include(playground_auto_set_url.cmake) diff --git a/playground_auto_set_url.cmake b/playground_auto_set_url.cmake index 7bf4e83..b2d0595 100644 --- a/playground_auto_set_url.cmake +++ b/playground_auto_set_url.cmake @@ -1,5 +1,5 @@ -set(PICO_EXTRAS_URL_BASE "https://github.com/raspberrypi/pico-playground/tree/HEAD") +set(PICO_PLAYGROUND_URL_BASE "https://github.com/raspberrypi/pico-playground/tree/HEAD") macro(playground_auto_set_url TARGET) - file(RELATIVE_PATH URL_REL_PATH "${PICO_EXTRAS_PATH}" "${CMAKE_CURRENT_LIST_DIR}") - pico_set_program_url(${TARGET} "${PICO_EXTRAS_URL_BASE}/${URL_REL_PATH}") + file(RELATIVE_PATH URL_REL_PATH "${PICO_PLAYGROUND_PATH}" "${CMAKE_CURRENT_LIST_DIR}") + pico_set_program_url(${TARGET} "${PICO_PLAYGROUND_URL_BASE}/${URL_REL_PATH}") endmacro()