diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index 12005c9..644ee00 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt @@ -52,8 +52,9 @@ if (BUILD_SHARED) add_library(ssl STATIC $) add_library(ssl-shared SHARED $) export_symbol(ssl-shared ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym) + target_link_libraries(ssl-shared crypto-shared) if (WIN32) - target_link_libraries(ssl-shared crypto-shared Ws2_32.lib) + target_link_libraries(ssl-shared Ws2_32.lib) set(SSL_POSTFIX -${SSL_MAJOR_VERSION}) endif() set_target_properties(ssl-shared PROPERTIES diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index c8de04c..fbe6693 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt @@ -30,8 +30,9 @@ if (BUILD_SHARED) add_library(tls STATIC $) add_library(tls-shared SHARED $) export_symbol(tls-shared ${CMAKE_CURRENT_SOURCE_DIR}/tls.sym) + target_link_libraries(tls-shared ssl-shared crypto-shared) if (WIN32) - target_link_libraries(tls-shared ssl-shared crypto-shared Ws2_32.lib) + target_link_libraries(tls-shared Ws2_32.lib) set(TLS_POSTFIX -${TLS_MAJOR_VERSION}) endif() set_target_properties(tls-shared PROPERTIES