diff --git a/CMakeLists.txt b/CMakeLists.txt index ecd36e73f..db83ef6be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)