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