Page 1 of 1

Unknown CMake command error VSCode

Posted: Mon Feb 05, 2024 4:30 pm
by NicoCaldo
I've installed the ESP-IDF via VS Code following the official documentation here https://github.com/espressif/vscode-esp ... install.md

Everything works fine expect that, for some reason, I'm having an error on the CMakeLists.txt

Code: Select all

CMake Error at CMakeLists.txt:6 (include):include could not find requested file:

  /tools/cmake/project.cmake

CMake Error at CMakeLists.txt:10 (target_add_binary_data):Unknown CMake command "target_add_binary_data".
What's wrong?

Re: Unknown CMake command error VSCode

Posted: Wed Feb 07, 2024 4:41 am
by ESP_bignacio
Could you provide some troubleshooting information as described in :

https://github.com/espressif/vscode-esp ... leshooting

From the output I suspect there is some space in one of the configuration settings path.I would make sure to use a directory with no spaces.