Skip to content

Commit

Permalink
Fixing windows bots.
Browse files Browse the repository at this point in the history
Third time's the try.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235123 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Chris Bieneman committed Apr 16, 2015
1 parent 578a18c commit 3cdbd16
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions cmake/modules/AddLLVM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -423,16 +423,18 @@ macro(add_llvm_library name)
set_target_properties( ${name} PROPERTIES EXCLUDE_FROM_ALL ON)
else()
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ${name} STREQUAL "LTO")
if(WIN32 OR CYGWIN)
install(TARGETS ${name}
EXPORT LLVMExports
RUNTIME DESTINATION lib${LLVM_LIBDIR_SUFFIX}
COMPONENT ${name})
elseif(ARG_SHARED OR BUILD_SHARED_LIBS)
install(TARGETS ${name}
EXPORT LLVMExports
LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
COMPONENT ${name})
if(ARG_SHARED OR BUILD_SHARED_LIBS)
if(WIN32 OR CYGWIN)
install(TARGETS ${name}
EXPORT LLVMExports
RUNTIME DESTINATION lib${LLVM_LIBDIR_SUFFIX}
COMPONENT ${name})
else()
install(TARGETS ${name}
EXPORT LLVMExports
LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
COMPONENT ${name})
endif()
else()
install(TARGETS ${name}
EXPORT LLVMExports
Expand Down

0 comments on commit 3cdbd16

Please sign in to comment.