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

SDK • Re: pico_sdk_import.cmake question

$
0
0
I'm not sure I understand your question. Yes, there are spaces in the path. What I posted is a copy and paste from the Windows command prompt.
I just mean when in Windows when you went to Advanced System Settings > System Properties > Environmental variables > System variables > new

That you put your path in double quotes. It will be necessary when using a path with spaces else cmake can't parse it correctly.

It should be exactly

Code:

set PICO_SDK_PATH="C:\Program Files\Raspberry Pi\Pico SDK v1.5.1\pico-sdk"
Otherwise you would need to modify the cmake file and add quotes there, but this makes more sense.

To clarify, it needs to be set through the GUI, not command line, and of course you are adding a new variable, not modifying PATH, but anyway, in the area of Windows shown here: https://www.computerhope.com/issues/ch000549.htm

Then a reboot is required.

Sorry if you know this and did it this way already, and used double quotes around the variable value already (after the equals symbol) but just to clarify.

Statistics: Posted by breaker — Wed Mar 06, 2024 2:22 pm



Viewing all articles
Browse latest Browse all 5224

Trending Articles