Merge pull request #2058 from MuAlphaOmegaEpsilon/compile-commands-autogen

Allow CMake to generate compile_commands.json automatically in the build dir
This commit is contained in:
MattKC
2023-06-11 22:39:56 -07:00
committed by GitHub
+4
View File
@@ -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)