Commit 28a2de5c authored by Benedikt Hegner's avatar Benedikt Hegner
Browse files

Added optional installation of compile_commands.json

My limited tests showed this to work, to keep the compile_commands.json 
file in the installation.

See merge request !74
parents 1652f3b2 2a87a37f
......@@ -391,6 +391,10 @@ macro(gaudi_project project version)
install(DIRECTORY cmake/EnvConfig DESTINATION scripts
FILES_MATCHING PATTERN "*.py" PATTERN "*.conf")
if (CMAKE_EXPORT_COMPILE_COMMANDS)
install(FILES ${CMAKE_BINARY_DIR}/compile_commands.json DESTINATION .)
endif()
#--- Global actions for the project
#message(STATUS "CMAKE_MODULE_PATH -> ${CMAKE_MODULE_PATH}")
include(GaudiBuildFlags)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment