MSVC: export all global symbols by default. (#80)
Resolves #79. Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
parent
a69638409c
commit
0e4934523e
|
|
@ -34,14 +34,19 @@ 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(APPLE)
|
||||
# If we're on OS X check for Homebrew's copy of OpenSSL instead of Apple's
|
||||
if (NOT OpenSSL_DIR)
|
||||
if(NOT OpenSSL_DIR)
|
||||
find_program(HOMEBREW brew)
|
||||
if (HOMEBREW STREQUAL "HOMEBREW-NOTFOUND")
|
||||
if(HOMEBREW STREQUAL "HOMEBREW-NOTFOUND")
|
||||
message(WARNING "Homebrew not found: not using Homebrew's OpenSSL")
|
||||
if (NOT OPENSSL_ROOT_DIR)
|
||||
if(NOT OPENSSL_ROOT_DIR)
|
||||
message(WARNING "Use -DOPENSSL_ROOT_DIR for non-Apple OpenSSL")
|
||||
endif()
|
||||
else()
|
||||
|
|
|
|||
Loading…
Reference in New Issue