I am writing C++ code for the Pico on Windows using VS Code and CMake.
What was working before:
I have been writing programs successfully using the recommended directory structure:
My_Project_* folder is a
CMakeLists.txt file, and a copy of
What did I change:
I changed to this structure. Just collecting my projects into their own parent folder, which itself it parallel to
When I try to configure one of the projects, I get an error message from the
[cmake] CMake Error at pico_sdk_import.cmake:65 (message):
[cmake] Directory 'D:/My_Projects/pico-sdk'
[cmake] not found
I am not super familiar with CMake, and I can't seem to work out what I need to change to get this to work. Presumably this directory
D:/My_Projects/pico-sdk should actually be
What can I change in my CMakeLists.txt file to tell CMake that my project folder is one folder deeper?
Please note that I've just simplified the directory names for this question.
pico-sdk is not really in the root of my D: drive.