diff options
author | Violet Purcell <vimproved@inventati.org> | 2023-09-17 11:10:53 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-12-25 10:31:16 +0000 |
commit | 58689e4318be7c42b54a77adf5439f6065caa58a (patch) | |
tree | b0a7700f0053990e1ed650c5507efe3cc6c663df /polly | |
parent | b951239932c735deec633bb53c0efa71912155f1 (diff) | |
download | llvm-58689e4318be7c42b54a77adf5439f6065caa58a.zip llvm-58689e4318be7c42b54a77adf5439f6065caa58a.tar.gz llvm-58689e4318be7c42b54a77adf5439f6065caa58a.tar.bz2 |
[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: https://github.com/llvm/llvm-project/pull/66598
Diffstat (limited to 'polly')
-rw-r--r-- | polly/cmake/polly_macros.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/polly/cmake/polly_macros.cmake b/polly/cmake/polly_macros.cmake index 518a09b..df541ee 100644 --- a/polly/cmake/polly_macros.cmake +++ b/polly/cmake/polly_macros.cmake @@ -43,9 +43,12 @@ macro(add_polly_library name) endif( LLVM_LINK_COMPONENTS ) if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LLVMPolly") install(TARGETS ${name} + COMPONENT ${name} EXPORT LLVMExports LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) + add_llvm_install_targets(install-${name} + COMPONENT ${name}) endif() set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name}) endmacro(add_polly_library) |