copyCompileCommands property

bool copyCompileCommands
final

Whether to generate and copy compile_commands.json to the package root.

Defaults to true. When enabled:

  • -DCMAKE_EXPORT_COMPILE_COMMANDS=ON is passed to the CMake configure step (for generators that support it, e.g. Ninja / Makefiles).
  • After a successful build, the generated compile_commands.json is 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;