Fixing windows bots.

Third time's the try.

llvm-svn: 235123
This commit is contained in:
Chris Bieneman 2015-04-16 17:40:51 +00:00
parent 181b63c6b5
commit 2f7d2a1370

View File

@ -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(ARG_SHARED OR BUILD_SHARED_LIBS)
if(WIN32 OR CYGWIN)
install(TARGETS ${name}
EXPORT LLVMExports
RUNTIME DESTINATION lib${LLVM_LIBDIR_SUFFIX}
COMPONENT ${name})
elseif(ARG_SHARED OR BUILD_SHARED_LIBS)
else()
install(TARGETS ${name}
EXPORT LLVMExports
LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
COMPONENT ${name})
endif()
else()
install(TARGETS ${name}
EXPORT LLVMExports