From 1dd6a52f2d8c1a3e49f330491a123378752a1c0d Mon Sep 17 00:00:00 2001 From: Masud Rahman Date: Mon, 24 Jul 2017 15:24:29 -0400 Subject: 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 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ssl') 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 -- cgit v1.2.3-55-g6feb