copyCompileCommands property
Whether to generate and copy compile_commands.json to the package root.
Defaults to true. When enabled:
-DCMAKE_EXPORT_COMPILE_COMMANDS=ONis passed to the CMake configure step (for generators that support it, e.g. Ninja / Makefiles).- After a successful build, the generated
compile_commands.jsonis copied to compileCommandsPath under the package root if it exists.
This makes LSP / clangd tooling work out of the box without manual
symlinks. Set to false to disable generation and copying.
Implementation
final bool copyCompileCommands;