[PATCH] D51603: [CMake] Provide a custom target to install LLVM libraries
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 4 12:11:50 PDT 2018
This revision was automatically updated to reflect the committed changes.
phosek marked an inline comment as done.
Closed by commit rL341395: [CMake] Provide a custom target to install LLVM libraries (authored by phosek, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D51603?vs=163748&id=163884#toc
Repository:
rL LLVM
https://reviews.llvm.org/D51603
Files:
llvm/trunk/CMakeLists.txt
Index: llvm/trunk/CMakeLists.txt
===================================================================
--- llvm/trunk/CMakeLists.txt
+++ llvm/trunk/CMakeLists.txt
@@ -983,6 +983,27 @@
DEPENDS llvm-headers
COMPONENT llvm-headers)
endif()
+
+ # Custom target to install all libraries.
+ add_custom_target(llvm-libraries)
+ set_target_properties(llvm-libraries PROPERTIES FOLDER "Misc")
+
+ if (NOT CMAKE_CONFIGURATION_TYPES)
+ add_llvm_install_targets(install-llvm-libraries
+ DEPENDS llvm-libraries
+ COMPONENT llvm-libraries)
+ endif()
+
+ get_property(LLVM_LIBS GLOBAL PROPERTY LLVM_LIBS)
+ if(LLVM_LIBS)
+ list(REMOVE_DUPLICATES LLVM_LIBS)
+ foreach(lib ${LLVM_LIBS})
+ add_dependencies(llvm-libraries ${lib})
+ if (NOT CMAKE_CONFIGURATION_TYPES)
+ add_dependencies(install-llvm-libraries install-${lib})
+ endif()
+ endforeach()
+ endif()
endif()
# This must be at the end of the LLVM root CMakeLists file because it must run
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51603.163884.patch
Type: text/x-patch
Size: 1092 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180904/addc872a/attachment.bin>
More information about the llvm-commits
mailing list