Skip to content

VsCode cmake tool 配置失败的问题

CMake Error: Error: generator : Ninja

Does not match the generator used previously: Unix Makefiles

Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

解决方案:

.vscode/setting.json 中添加:

{
    "cmake.generator": "Unix Makefiles",
}

基于 VitePress 构建