diff --git a/CMakeLists.txt b/CMakeLists.txt index ea145ced..5cedee55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,9 @@ endif() # set the module path, used for includes set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") +# export compile_commands.json +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + # set version info for this build include(${CMAKE_MODULE_PATH}/prep/build_version.cmake)