summaryrefslogtreecommitdiff
path: root/cmake/modules/AddLLVM.cmake
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-12-29 06:56:28 +0000
committerNico Weber <nicolasweber@gmx.de>2013-12-29 06:56:28 +0000
commitbfefc8d071c141047137e1f3423fc607b2b4c712 (patch)
treef3bcb422c2a6bf016d1015bac0215117e6b238a2 /cmake/modules/AddLLVM.cmake
parent9c7316f760a50457397c27964ab3b884749ea7fc (diff)
downloadllvm-bfefc8d071c141047137e1f3423fc607b2b4c712.tar.gz
llvm-bfefc8d071c141047137e1f3423fc607b2b4c712.tar.bz2
llvm-bfefc8d071c141047137e1f3423fc607b2b4c712.tar.xz
Windows build fixes, hopefully last part.
r198153 fixed the msvs bot problem, but broke a msysgit bot. This change hopefully makes both variants happy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/AddLLVM.cmake')
-rw-r--r--cmake/modules/AddLLVM.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 404bc38a6a..0933a02a01 100644
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -44,8 +44,13 @@ function(add_llvm_symbol_exports target_name export_file)
DEPENDS ${export_file}
VERBATIM
COMMENT "Creating export file for ${target_name}")
- set_property(TARGET ${target_name} APPEND_STRING PROPERTY
- LINK_FLAGS "/DEF:${CMAKE_CURRENT_BINARY_DIR}/symbol.def")
+ if(CYGWIN)
+ set_property(TARGET ${target_name} APPEND_STRING PROPERTY
+ LINK_FLAGS "${CMAKE_CURRENT_BINARY_DIR}/symbol.def")
+ else()
+ set_property(TARGET ${target_name} APPEND_STRING PROPERTY
+ LINK_FLAGS "/DEF:${CMAKE_CURRENT_BINARY_DIR}/symbol.def")
+ endif()
endif()
add_custom_target(${target_name}_exports DEPENDS ${native_export_file})