build(cmake): export compile commands (#3894)
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user