在VS Code中开发ESP32遇到如下IDF_PATH环境变量不一致的警告问题
每次编译的时候出现如下警告:
⚠️ CMake Warning at D:/espressif/esp-idf-v4.0/tools/cmake/idf.cmake:14 (message):
IDF_PATH environment variable is different from inferred IDF_PATH.
Check if your project's top-level CMakeLists.txt includes the right
CMake files. Environment IDF_PATH will be used for the build.
Call Stack (most recent call first):
D:/espressif/esp-idf-v4.0/tools/cmake/project.cmake:7 (include)
CMakeLists.txt:5 (include)
解决方法:
文件->首选项->设置->用户区->扩展->ESP-IDF,把路径前面的小写盘符改成大写字母
我为啥这么闲。。。强迫症受不了警告。。