From 655b1cffd95af2350adab060f677a3740322502d Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Mon, 2 Mar 2020 19:38:29 +0100 Subject: [PATCH] Fixing openssl linkage for shared lib --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3bb8386..e12ed9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -189,6 +189,9 @@ if(HAVE_OPEN_SSL) set(HEADER_FILES ${HEADER_FILES} src/ssl/SSLManager.h ) + set(OPENSSL_LIBRARIES + openssl::ssl::shared + openssl::crypto::shared) endif() find_package(mysql REQUIRED) @@ -197,6 +200,7 @@ add_library(TeaSpeak STATIC ${SOURCE_FILES} ${HEADER_FILES}) target_link_libraries(TeaSpeak PUBLIC mysql::client::static threadpool::static jsoncpp_lib + ${OPENSSL_LIBRARIES} tomcrypt::static tommath::static dl