I was about to raise an issue at vscode-cmake-tools but fortunately I first disabled all extensions just to see if any extension possibly has an effect on the error.
So I have a very simple example project that contains only the two files main.cpp and CMakeLists.txt (contents see below). Everything works fine using the C/C++ and CMake Tools extensions. However only if this extension is active, VS Code states the fetched header file is not found:
Fortunately all the IntelliSense stuff works nevertheless (like ctrl+click) but I thought you should know about this. And maybe you also have an idea why this happens.
I was about to raise an issue at vscode-cmake-tools but fortunately I first disabled all extensions just to see if any extension possibly has an effect on the error.
So I have a very simple example project that contains only the two files
main.cpp
andCMakeLists.txt
(contents see below). Everything works fine using the C/C++ and CMake Tools extensions. However only if this extension is active, VS Code states the fetched header file is not found:main.cpp:
CMakeLists.txt:
Fortunately all the IntelliSense stuff works nevertheless (like ctrl+click) but I thought you should know about this. And maybe you also have an idea why this happens.