From adf547518f273a38967c058c132bb3a68b823275 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Thu, 21 Dec 2023 21:23:55 +0100 Subject: [PATCH] build: export compile commands for project targets --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea4e50774..a4be72372 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}