summaryrefslogtreecommitdiff
path: root/cmake/modules/AddLLVM.cmake
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-12-29 06:12:40 +0000
committerNico Weber <nicolasweber@gmx.de>2013-12-29 06:12:40 +0000
commit531c479697c51773702d9fcf5e508d536d81e3ca (patch)
treebbdb3e8d5de393da26b4e242ff15a8803a336147 /cmake/modules/AddLLVM.cmake
parentaa29cf421abda05d159268065a81e238aacf5b85 (diff)
downloadllvm-531c479697c51773702d9fcf5e508d536d81e3ca.tar.gz
llvm-531c479697c51773702d9fcf5e508d536d81e3ca.tar.bz2
llvm-531c479697c51773702d9fcf5e508d536d81e3ca.tar.xz
Another windows build fix attempt.
Inspired by http://public.kitware.com/pipermail/cmake-developers/2012-March/003768.html git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/AddLLVM.cmake')
-rw-r--r--cmake/modules/AddLLVM.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 6bfed6999d..404bc38a6a 100644
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -45,7 +45,7 @@ function(add_llvm_symbol_exports target_name export_file)
VERBATIM
COMMENT "Creating export file for ${target_name}")
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
- LINK_FLAGS " ${CMAKE_CURRENT_BINARY_DIR}/symbol.def")
+ LINK_FLAGS "/DEF:${CMAKE_CURRENT_BINARY_DIR}/symbol.def")
endif()
add_custom_target(${target_name}_exports DEPENDS ${native_export_file})