首页 > 解决方案 > cmakefileapi-parser 关于 windows-VSCode 中 CMake 的警告消息

问题描述

[cmakefileapi-parser] Code model version (2.1) of cmake-file-api is unexpected. Expecting (2.0). IntelliSense configuration may be incorrect.
[cmakefileapi-parser] Code model version (2.1) of cmake-file-api is unexpected. Expecting (2.0). IntelliSense configuration may be incorrect.
[build] Build finished with exit code 0

我正在 windows-VSCode 中学习 C++。当我使用 CMake 运行 helloworld 时,它显示了这一点。也许它成功了,但我真的很介意这个 [cmakefileapi-parser] 消息。如何正确设置?

标签: visual-studio-codecmake

解决方案


我对 cmake 版本 3.18.0-rc1(候选发布版)有完全相同的问题。

我使用最新的稳定版 cmake(版本 3.17.3)代替,问题应该消失 ;-)


推荐阅读