1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Cleanup based on rnk's feedback.

llvm-svn: 235125
This commit is contained in:
Chris Bieneman 2015-04-16 18:08:33 +00:00
parent f808782564
commit c7ef6f1aee

View File

@ -425,23 +425,19 @@ macro(add_llvm_library name)
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LTO")
if(ARG_SHARED OR BUILD_SHARED_LIBS)
if(WIN32 OR CYGWIN)
install(TARGETS ${name}
EXPORT LLVMExports
RUNTIME DESTINATION lib${LLVM_LIBDIR_SUFFIX}
COMPONENT ${name})
set(install_type RUNTIME)
else()
install(TARGETS ${name}
EXPORT LLVMExports
LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
COMPONENT ${name})
set(install_type LIBRARY)
endif()
else()
install(TARGETS ${name}
EXPORT LLVMExports
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}
COMPONENT ${name})
set(install_type ARCHIVE)
endif()
install(TARGETS ${name}
EXPORT LLVMExports
${install_type} DESTINATION lib${LLVM_LIBDIR_SUFFIX}
COMPONENT ${name})
if (NOT CMAKE_CONFIGURATION_TYPES)
add_custom_target(install-${name}
DEPENDS ${name}