cmakefileapi-parser 关于 windows-VSCode 中 CMake 的警告消息

Tab*_*ace 7 cmake visual-studio-code

[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
Run Code Online (Sandbox Code Playgroud)

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

Pie*_*ret 3

我在 cmake 版本 3.18.0-rc1(候选版本)中遇到了完全相同的问题。

如果您使用最新的稳定版本的 cmake(版本 3.17.3),问题应该消失;-)