diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index a990ca45be0..9bcf00ed0d7 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -49,7 +49,7 @@ function(add_llvm_symbol_exports target_name export_file) LINK_FLAGS "${CMAKE_CURRENT_BINARY_DIR}/${native_export_file}") else() set_property(TARGET ${target_name} APPEND_STRING PROPERTY - LINK_FLAGS " ${CMAKE_CURRENT_BINARY_DIR}/${native_export_file}") + LINK_FLAGS "/DEF:${CMAKE_CURRENT_BINARY_DIR}/${native_export_file}") endif() endif()