Skip to content

Commit

Permalink
Merge pull request olive-editor#2058 from MuAlphaOmegaEpsilon/compile…
Browse files Browse the repository at this point in the history
…-commands-autogen

Allow CMake to generate compile_commands.json automatically in the build dir
  • Loading branch information
itsmattkc authored Jun 12, 2023
2 parents 8c11787 + 4d5016e commit 1687a72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

# Generates a compile_commands.json in the build dir, link that to the repo
# root to enrich your IDE with clangd language server protocol functionalities
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# Sanitizers
add_library(olive-sanitizers INTERFACE)
include(cmake/Sanitizers.cmake)
Expand Down

0 comments on commit 1687a72

Please sign in to comment.