Skip to content

Commit

Permalink
cmake/compiler.cmake: provide compile_commands.json for use by tools (#…
Browse files Browse the repository at this point in the history
…4014)

`compile_commands.json` allows LSPs and other tools to better interact
with the code.

Signed-off-by: David Aguilar <[email protected]>
  • Loading branch information
davvid authored Oct 12, 2023
1 parent 94fc8f8 commit bda5141
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmake/compiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,10 @@ else ()
endif ()


###########################################################################
# Generate compile_commands.json for use by editors and tools.
set (CMAKE_EXPORT_COMPILE_COMMANDS ON)


###########################################################################
# Macro to install targets to the appropriate locations. Use this instead
Expand Down

0 comments on commit bda5141

Please sign in to comment.