llvm.org GIT mirror llvm / 6c7c3cc
[CMake] Install import libraries Simplify the cmake logic to install both runtime and import libraries (treated as ARCHIVE), as the later are needed to link against llvm. Patch by Julien Schueller! Differential Revision: https://reviews.llvm.org/D61425 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360230 91177308-0d34-0410-b5e6-96231b3b80d8 Martin Storsjo 5 months ago
1 changed file(s) with 3 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
670670 if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LTO" OR
671671 ${name} STREQUAL "Remarks" OR
672672 (LLVM_LINK_LLVM_DYLIB AND ${name} STREQUAL "LLVM"))
673 set(install_dir lib${LLVM_LIBDIR_SUFFIX})
674 if(ARG_MODULE OR ARG_SHARED OR BUILD_SHARED_LIBS)
675 if(WIN32 OR CYGWIN OR MINGW)
676 set(install_type RUNTIME)
677 set(install_dir bin)
678 else()
679 set(install_type LIBRARY)
680 endif()
681 else()
682 set(install_type ARCHIVE)
683 endif()
684
685 if (ARG_MODULE)
686 set(install_type LIBRARY)
687 endif()
688673
689674 set(export_to_llvmexports)
690675 if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
696681
697682 install(TARGETS ${name}
698683 ${export_to_llvmexports}
699 ${install_type} DESTINATION ${install_dir}
684 LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
685 ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}
686 RUNTIME DESTINATION bin
700687 COMPONENT ${name})
701688
702689 if (NOT LLVM_ENABLE_IDE)