Skip to content

Commit

Permalink
Merge pull request #262 from fcelda/windows-export-symbols
Browse files Browse the repository at this point in the history
build: cmake: export all symbols on Windows
  • Loading branch information
oschwald authored Apr 29, 2021
2 parents 9ec72a1 + 5e4b9be commit cc2d3ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc2d3ca

Please sign in to comment.