Skip to content

Commit 58689e4

Browse files
vimprovedthesamesam
authored andcommitted
[polly] [CMake] Create component and install target in add_polly_library (#66598)
Currently there's no component for LLVMPolly and PollyISL, however they are added to exports whether or not they are installed. This commit calls add_llvm_install_targets in the add_polly_library function to allow installation of LLVMPolly and PollyISL via distribution components, so they can be installed without also installing libPolly.a. Closes: llvm/llvm-project#66598
1 parent b951239 commit 58689e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

polly/cmake/polly_macros.cmake

+3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ macro(add_polly_library name)
4343
endif( LLVM_LINK_COMPONENTS )
4444
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LLVMPolly")
4545
install(TARGETS ${name}
46+
COMPONENT ${name}
4647
EXPORT LLVMExports
4748
LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
4849
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
50+
add_llvm_install_targets(install-${name}
51+
COMPONENT ${name})
4952
endif()
5053
set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name})
5154
endmacro(add_polly_library)

0 commit comments

Comments
 (0)