Skip to content

Commit

Permalink
add compile_commands.json to .gitignore
Browse files Browse the repository at this point in the history
We set CMAKE_EXPORT_COMPILE_COMMANDS=ON so the compilation database is
automatically exported to the build directory. However, many language
servers expect this file to be in the project root directory, so a common
post-build step is to:

```shell
$ ln -s <build-directory>/compile_commands.json
```

This PR enables developers to do this without having to worry about
accidentally commiting a symlink file.

Signed-off-by: carson radtke <nosrac925@gmail.com>
  • Loading branch information
carsonRadtke committed Apr 14, 2024
1 parent 6f0c461 commit d1e408d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ __pycache__
.pytest_cache
.cache
.CMake/a.out
compile_commands.json

0 comments on commit d1e408d

Please sign in to comment.