Fixing openssl linkage for shared lib

This commit is contained in:
WolverinDEV 2020-03-02 19:38:29 +01:00
parent 0337487999
commit 655b1cffd9

View File

@ -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