Skip to content

Commit 88477db

Browse files
committed
[lld] enable installing lld headers as part of distribution
1 parent 918848d commit 88477db

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lld/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,21 @@ include_directories(BEFORE
180180
${CMAKE_CURRENT_SOURCE_DIR}/include
181181
)
182182

183+
add_custom_target(lld-headers)
184+
set_target_properties(lld-headers PROPERTIES FOLDER "Misc")
183185
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
184-
install(DIRECTORY include/
186+
install(DIRECTORY include/lld
185187
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
188+
COMPONENT lld-headers
186189
FILES_MATCHING
187190
PATTERN "*.h"
188191
)
192+
193+
if (NOT LLVM_ENABLE_IDE)
194+
add_llvm_install_targets(install-lld-headers
195+
DEPENDS lld-headers
196+
COMPONENT lld-headers)
197+
endif()
189198
endif()
190199

191200
add_subdirectory(Common)

0 commit comments

Comments
 (0)