From 1dd6a52f2d8c1a3e49f330491a123378752a1c0d Mon Sep 17 00:00:00 2001 From: Masud Rahman Date: Mon, 24 Jul 2017 15:24:29 -0400 Subject: [PATCH] ssl/tls cmake: fix shared library dependencies Ensure that the 'ssl' depends on 'crypto' and that 'tls' depends on 'ssl' and 'crypto' for all platforms. Prior to this commit, the dependency was only specified for the 'WIN32' CMake build. --- ssl/CMakeLists.txt | 3 ++- tls/CMakeLists.txt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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