Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate compile_commands.json by default (#9763)
* Generate compile_commands.json by default This is low overhead (it only affects the make-generation step, not the actual build) and makes developer tooling like clangd work much better, so we should have it on by default instead of off (which is CMake's default). If necessary, it can be disabled with ```bash cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=0 ... ``` * Add skip when run in a subproject * Update CMakeLists.txt Co-authored-by: Andrew Reusch <[email protected]> Co-authored-by: driazati <[email protected]> Co-authored-by: Andrew Reusch <[email protected]>
- Loading branch information