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
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})