[PATCH] D61425: Install import libraries
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 01:38:36 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL360230: [CMake] Install import libraries (authored by mstorsjo, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D61425?vs=197727&id=198593#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61425/new/
https://reviews.llvm.org/D61425
Files:
llvm/trunk/cmake/modules/AddLLVM.cmake
Index: llvm/trunk/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake
+++ llvm/trunk/cmake/modules/AddLLVM.cmake
@@ -671,21 +671,6 @@
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LTO" OR
${name} STREQUAL "Remarks" OR
(LLVM_LINK_LLVM_DYLIB AND ${name} STREQUAL "LLVM"))
- set(install_dir lib${LLVM_LIBDIR_SUFFIX})
- if(ARG_MODULE OR ARG_SHARED OR BUILD_SHARED_LIBS)
- if(WIN32 OR CYGWIN OR MINGW)
- set(install_type RUNTIME)
- set(install_dir bin)
- else()
- set(install_type LIBRARY)
- endif()
- else()
- set(install_type ARCHIVE)
- endif()
-
- if (ARG_MODULE)
- set(install_type LIBRARY)
- endif()
set(export_to_llvmexports)
if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
@@ -697,7 +682,9 @@
install(TARGETS ${name}
${export_to_llvmexports}
- ${install_type} DESTINATION ${install_dir}
+ LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
+ ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}
+ RUNTIME DESTINATION bin
COMPONENT ${name})
if (NOT LLVM_ENABLE_IDE)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61425.198593.patch
Type: text/x-patch
Size: 1285 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190508/da273baa/attachment.bin>
More information about the llvm-commits
mailing list