From 5e049e3c619f556da902320cbc3226f0ebc85010 Mon Sep 17 00:00:00 2001 From: Clutchnp <105556048+Clutchnp@users.noreply.github.com> Date: Sat, 24 May 2025 09:19:09 +0530 Subject: [PATCH] build(cmake): export compile commands (#3894) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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)