Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile_commands.json do not contain include files #3

Open
ghrejoe opened this issue Jan 9, 2024 · 0 comments
Open

compile_commands.json do not contain include files #3

ghrejoe opened this issue Jan 9, 2024 · 0 comments

Comments

@ghrejoe
Copy link

ghrejoe commented Jan 9, 2024

Hi, I may have discovered a problem.
Use cmake(3.27.7) to generate the vs2022 project, and then use vs_export to generate a compile_commands.json file.
When I opened project, I found that some header files added by cmake were not displayed in the c/c++ > include file.
When I opened the vcxproj file, I found that these header files were added to AdditionalOptions instead of AdditionalInclusieDirectories, like this:
...
%(AdditionalOptions) /external:I "J:/Qt/5.15.2/msvc2019/include" /external:I "J:/Qt/5.15.2/msvc2019/include/QtWidgets" /external:I "J:/Qt/5.15.2/msvc2019/include/QtGui" /external:I "J:/Qt/5.15.2/msvc2019/include/QtCore" /external:I "J:/Qt/5.15.2/msvc2019/./mkspecs/win32-msvc" /external:I "J:/Qt/5.15.2/msvc2019/include/QtANGLE" /external:I "J:/Qt/5.15.2/msvc2019/include/QtPrintSupport"
...

it might be vs_export did not parse the header files contained in AdditionalOptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant