MSVC: export all global symbols by default.

Resolves #79.

Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
Tao He 2021-08-23 19:28:31 +08:00
parent a69638409c
commit 067aacf5f5
1 changed files with 9 additions and 4 deletions

View File

@ -34,6 +34,11 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib:${CMAKE_INSTALL_PREFIX}/lib64")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
if(MSVC)
set(WINDOWS_EXPORT_ALL_SYMBOLS ON)
set(CMAKE_GNUtoMS ON)
endif()
find_package(Boost REQUIRED COMPONENTS system thread random)
if(APPLE)
# If we're on OS X check for Homebrew's copy of OpenSSL instead of Apple's