Skip to content

Enable CMAKE_EXPORT_COMPILE_COMMANDS - #7804

Merged
tresf merged 1 commit into
LMMS:masterfrom
rubiefawn:cmake-export-compile-commands
Mar 22, 2025
Merged

Enable CMAKE_EXPORT_COMPILE_COMMANDS#7804
tresf merged 1 commit into
LMMS:masterfrom
rubiefawn:cmake-export-compile-commands

Conversation

@rubiefawn

Copy link
Copy Markdown
Contributor

This setting instructs CMake to generate compile_commands.json for use with clangd. This is useful for those of us who don't use an IDE, and doesn't place any significant strain on the build system, since it's just CMake writing down stuff it already has to compute in the first place.

Enabling this is already possible when invoking cmake by passing -DCMAKE_EXPORT_COMPILE_COMMANDS=ON, but I'm sick of typing that out, lmao

This setting instructs CMake to generate compile_commands.json for use
with clangd.
@tresf
tresf merged commit 91233e6 into LMMS:master Mar 22, 2025
@rubiefawn
rubiefawn deleted the cmake-export-compile-commands branch March 22, 2025 06:05
sakertooth pushed a commit to sakertooth/lmms that referenced this pull request Jun 1, 2025
This setting instructs CMake to generate compile_commands.json for use
with clangd.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants