Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

SDK • Re: Error compiling for RP2350

$
0
0
I was under the impression that PICO_PLATFORM, and PICO_BOARD could be defined using the set command in CMakeLists.txt. It appears, however, that they have to be set as environmental values. After doing that, everything compiles correctly.
Defining PICO_PLATFORM and PICO_BOARD in 'CMakeLists.txt' works for me and I have never defined either as environment variables.

But changing them without clearing the build directory won't completely rebuild a project which may result in errors which don't appear when the directory has been deleted before a build.

It may be that making them environment variable caused CMake to rebuild everything so effectively cleared the build directory. Though hard to see why it wasn't working when you seemingly had manually cleared the build directory.

Statistics: Posted by hippy — Wed Mar 26, 2025 12:23 pm



Viewing all articles
Browse latest Browse all 8093

Trending Articles