From 5e4b9be18f30425bd1943a5172652d4daa55f12f Mon Sep 17 00:00:00 2001 From: Jan Vcelak Date: Thu, 29 Apr 2021 13:30:23 +0200 Subject: [PATCH] build: cmake: export all symbols on Windows --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 44aea761..8d222fdd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,6 +54,9 @@ endif() if(WIN32) target_link_libraries(maxminddb ws2_32) + if(BUILD_SHARED_LIBS) + set_target_properties(maxminddb PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON) + endif() endif() target_include_directories(maxminddb PUBLIC