Skip to content

Commit

Permalink
Link to threading library, as if supplying external OpenSSL libraries…
Browse files Browse the repository at this point in the history
… to use won't link otherwise.
  • Loading branch information
ned14 committed Apr 11, 2022
1 parent b399fe4 commit c191af2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mysys_ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ SET(MYSYS_SSL_SOURCES
)

ADD_CONVENIENCE_LIBRARY(mysys_ssl ${MYSYS_SSL_SOURCES})
TARGET_LINK_LIBRARIES(mysys_ssl dbug strings ${SSL_LIBRARIES} ${ZLIB_LIBRARY})
find_package(Threads)
TARGET_LINK_LIBRARIES(mysys_ssl dbug strings ${SSL_LIBRARIES} ${ZLIB_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
# Needed to resolve OpenSSL dependency on Windows
IF(WIN32 AND NOT WITH_SSL STREQUAL "bundled")
TARGET_LINK_LIBRARIES(mysys_ssl crypt32)
Expand Down

0 comments on commit c191af2

Please sign in to comment.