pico-sdk
pico-sdk copied to clipboard
Fix unexpected (CMake) behavior 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". (See issue https://github.com/raspberrypi/pico-sdk/issues/1046)
Instructions: (please delete)
- please do not submit against
master, usedevelopinstead - please make sure there is an associated issue for your PR, and reference it via "Fixes #num" in the description
- please enter a detailed description
- please do not submit against
master, usedevelopinstead
Does this actually work as expected; I would think you need FORCE on the set commands
I see the value changing in CMakeCache.txt. It does seem contradict the cmake documentation though
I'm not really familiar with CMake so not sure if this is "correct" way to fix the issue. But it definitely fixed the issue I was having...
I updated the fix to have the PICO_CYW43_SUPPORTED not be a cache variable