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 <graham.sanderson@raspberrypi.com>
This commit is contained in:
Timo Kokkonen 2022-10-21 06:59:02 -07:00 committed by GitHub
parent 16ab2b21ba
commit e50e107d91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) include(${CMAKE_CURRENT_LIST_DIR}/generic_board.cmake)