build(cmake): export compile commands (#3894)

This commit is contained in:
Clutchnp
2025-05-24 09:19:09 +05:30
committed by GitHub
parent 9effeba5fe
commit 5e049e3c61

View File

@@ -27,6 +27,9 @@ endif()
# set the module path, used for includes # set the module path, used for includes
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
# export compile_commands.json
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# set version info for this build # set version info for this build
include(${CMAKE_MODULE_PATH}/prep/build_version.cmake) include(${CMAKE_MODULE_PATH}/prep/build_version.cmake)