asio: Fix MSVC DLL exports

This commit is contained in:
Vladimir Serdyuk 2021-09-11 16:49:32 +03:00
parent 4181b070e9
commit 11d7e549fd
1 changed files with 3 additions and 0 deletions

View File

@ -297,6 +297,9 @@ if(ENABLE_ASIO_LIB)
)
if(WIN32)
target_compile_definitions(nghttp2_asio PRIVATE NOMINMAX)
if(NOT ENABLE_STATIC_LIB)
set_target_properties(nghttp2_asio PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
endif()
endif()
target_link_libraries(nghttp2_asio
${NGHTTP2_TARGET}