Another windows build fix attempt.
authorNico Weber <nicolasweber@gmx.de>
Sun, 29 Dec 2013 06:12:40 +0000 (06:12 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sun, 29 Dec 2013 06:12:40 +0000 (06:12 +0000)
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

index 6bfed6999d0e1cb09308df03f42c41209ec8aeae..404bc38a6ab7e23a44d8b8cb22fd49c02ce76886 100644 (file)
@@ -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})