From e50e107d91c0d11c6f746f9012bd332feabbc82d Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Fri, 21 Oct 2022 06:59:02 -0700 Subject: [PATCH] Fix unexpected (CMake) behavior with PICO_BOARD variable. (#1050) * Fix unexpected (CMake) behaviour with PICO_BOARD variable. Changing PICO_BOARD value from "pico_w" to "pico" did not unset PICO_CYW43_SUPPORTED variable. Which could lead CYW43 driver included in builds for "pico". solution: make PICO_CYW43_SUPPORTED a non cache variable Co-authored-by: Graham Sanderson --- src/boards/pico_w.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/boards/pico_w.cmake b/src/boards/pico_w.cmake index 15b901d..7aeaaee 100644 --- a/src/boards/pico_w.cmake +++ b/src/boards/pico_w.cmake @@ -1,2 +1,3 @@ -set(PICO_CYW43_SUPPORTED "1" CACHE INTERNAL "Try to add support for PICO_CYW43") +set(PICO_CYW43_SUPPORTED "1") +pico_register_common_scope_var(PICO_CYW43_SUPPORTED) include(${CMAKE_CURRENT_LIST_DIR}/generic_board.cmake)