From 11d7e549fd66bcaf6af894d243486ac91a873a91 Mon Sep 17 00:00:00 2001 From: Vladimir Serdyuk Date: Sat, 11 Sep 2021 16:49:32 +0300 Subject: [PATCH] asio: Fix MSVC DLL exports --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b162eea5..9f31b165 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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}