Fixing windows bots.
authorChris Bieneman <beanz@apple.com>
Thu, 16 Apr 2015 17:40:51 +0000 (17:40 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 16 Apr 2015 17:40:51 +0000 (17:40 +0000)
Third time's the try.

llvm-svn: 235123

llvm/cmake/modules/AddLLVM.cmake

index 2f4a778..80e4be5 100644 (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(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