Better fix to the windows conditional.

llvm-svn: 235121
This commit is contained in:
Chris Bieneman 2015-04-16 17:26:50 +00:00
parent 8dc330695a
commit 8f1303663a
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ 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("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
if(WIN32 OR CYGWIN)
install(TARGETS ${name}
EXPORT LLVMExports
RUNTIME DESTINATION lib${LLVM_LIBDIR_SUFFIX}