From 343bda6487cac9ae3d6b15e2140252b32e4ccb9e Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 29 Dec 2013 05:39:01 +0000 Subject: More windows build fix attempts. The windows ninja build is now green, but msvs is still unhappy. Maybe that's because the .def file was passed when building LTO_static, so only pass symbol lists for shared libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198151 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/modules/AddLLVM.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmake/modules/AddLLVM.cmake') diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 681bbe899b..6bfed6999d 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -86,10 +86,10 @@ macro(add_llvm_library name) PROPERTIES IMPORT_SUFFIX ".imp") endif () - endif() - if (LLVM_EXPORTED_SYMBOL_FILE) - add_llvm_symbol_exports( ${name} ${LLVM_EXPORTED_SYMBOL_FILE} ) + if (LLVM_EXPORTED_SYMBOL_FILE) + add_llvm_symbol_exports( ${name} ${LLVM_EXPORTED_SYMBOL_FILE} ) + endif() endif() # Ensure that the system libraries always comes last on the -- cgit v1.2.3