Skip to content

Commit

Permalink
build: export compile commands for project targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Dec 21, 2023
1 parent ecc0321 commit adf5475
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,8 @@ target_link_libraries(features_thrift thrift_light)
foreach(tgt dwarfs dwarfs_compression dwarfs_categorizer
dwarfs_compression_metadata dwarfs_tool
${BINARY_TARGETS} ${TEST_TARGETS} ${MAIN_TARGETS})
set_target_properties(${tgt} PROPERTIES EXPORT_COMPILE_COMMANDS ON)

target_include_directories(
${tgt} SYSTEM
PRIVATE ${Boost_INCLUDE_DIRS} ${Python3_INCLUDE_DIRS} ${INCLUDE_DIRS}
Expand Down

0 comments on commit adf5475

Please sign in to comment.