-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat: create a symlink of complie_commands.json
on the source dir
#190
Conversation
It would be great if we could automate the addition to |
This should be optional then. I prefer to automately add it only if |
8456b0b
to
3b5fc8d
Compare
I tried this locally, but I got this error:
|
The command requires CMake 3.24+. Maybe that's the reason? The debug here requires a lot of tedious edit-and-test work, so I suggest just ignore this pull request after I fix this. |
Should work now. Already tested on my windows virtual machine. |
Here's a summay feature of my pr:
|
55bf1fc
to
f54b687
Compare
rebased on main and ready to merge now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use TRACE
for the messages that are not necessary for the user.
#190 (comment)
It helps clang based tools to find
compile_commands.json
when using out-of-source builds, and to find the correctcompile_commands.json
when handling multiple builds.Already tested in my FeignClaims/cmake_starter_template (for the orign extension version, see
cmake/SymlinkCompileCommands.cmake
) when I switch between clang and gcc on MacOS and Windows.Users should be notified to add
compile_commands.json
to.gitignore
though.