viewtopic.php?t=316408
I bet I know why. It's because the *.cmake files ignore PICO_SDK_PATH in the Environment.In a huge amount of code I see posted, I see people setting PICO_SDK_PATH in their CMakeLists.txt
The intentions that you NOT set it there (otherwise people will have to change it when they check out your project), but just include pico_sdk_import.cmake which takes care of the stuff below:
You can configure the location it via -DPICO_SDK_PATH to CMake (or set it in the appropriate section of your IDE), or it will be automatically picked up from the PICO_SDK_PATH environment variable when you run CMake. Is this not well documented? it does say effectively this in the README for the SDK here: https://github.com/raspberrypi/pico-sdk.
Same goes for PICO_EXTRAS_PATH / pico_extras_import.cmake (although that also looks for a sibling of your pico-sdk directory called pico-extras)
Statistics: Posted by LemonPi — Thu Mar 07, 2024 11:36 pm