[llvm] r235125 - Cleanup based on rnk's feedback.
Chris Bieneman
beanz at apple.com
Thu Apr 16 11:08:33 PDT 2015
Author: cbieneman
Date: Thu Apr 16 13:08:33 2015
New Revision: 235125
URL: http://llvm.org/viewvc/llvm-project?rev=235125&view=rev
Log:
Cleanup based on rnk's feedback.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=235125&r1=235124&r2=235125&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Thu Apr 16 13:08:33 2015
@@ -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}
More information about the llvm-commits
mailing list