From 4d00b0322bd93048c2acb0f695865e0c0acce8d6 Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Fri, 22 Oct 2021 22:08:24 +0100 Subject: [PATCH] Fix PICO_EXTRAS_FETCH_FROM_GIT (#23) FetchContent converts the name to lowercase --- external/pico_extras_import.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external/pico_extras_import.cmake b/external/pico_extras_import.cmake index 706add0..8d24243 100644 --- a/external/pico_extras_import.cmake +++ b/external/pico_extras_import.cmake @@ -33,7 +33,7 @@ if (NOT PICO_EXTRAS_PATH) if (NOT PICO_EXTRAS) message("Downloading PICO EXTRAS") FetchContent_Populate(PICO_EXTRAS) - set(PICO_EXTRAS_PATH ${PICO_EXTRAS_SOURCE_DIR}) + set(PICO_EXTRAS_PATH ${pico_extras_SOURCE_DIR}) endif () set(FETCHCONTENT_BASE_DIR ${FETCHCONTENT_BASE_DIR_SAVE}) else () @@ -59,4 +59,4 @@ endif () set(PICO_EXTRAS_PATH ${PICO_EXTRAS_PATH} CACHE PATH "Path to the PICO EXTRAS" FORCE) -add_subdirectory(${PICO_EXTRAS_PATH} pico_extras) \ No newline at end of file +add_subdirectory(${PICO_EXTRAS_PATH} pico_extras)