Skip to content

Commit

Permalink
Add compile_commands.json to distribution package.
Browse files Browse the repository at this point in the history
Signed-off-by: Rule Timothy (VM/EMT3) <Timothy.Rule@de.bosch.com>
  • Loading branch information
timrulebosch committed Jul 4, 2024
1 parent ac1b10c commit 36478c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dse/modelc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ set(PROJECT_VERSION ${VERSION})

include(GNUInstallDirs)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/_out)

set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED TRUE)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
Expand Down Expand Up @@ -325,6 +325,14 @@ install(
COMPONENT
modelc
)
install(
DIRECTORY
${CMAKE_BINARY_DIR}/compile_commands.json
DESTINATION
doc
COMPONENT
modelc
)
if(UNIX)
install(
FILES
Expand Down

0 comments on commit 36478c7

Please sign in to comment.