From 531c479697c51773702d9fcf5e508d536d81e3ca Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 29 Dec 2013 06:12:40 +0000 Subject: 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 --- cmake/modules/AddLLVM.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/modules/AddLLVM.cmake') 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}) -- cgit v1.2.3