Skip to content

Commit

Permalink
Remove CMAKE_DL_LIBS from openssl linking
Browse files Browse the repository at this point in the history
  • Loading branch information
who-biz committed Jan 25, 2020
1 parent f385034 commit 82e4516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ endif()
find_package(OpenSSL REQUIRED)
message(STATUS "Using OpenSSL include dir at ${OPENSSL_INCLUDE_DIR}")
include_directories(OPENSSL_INCLUDE_DIR ${OPENSSL_INCLUDE_DIR})
set(OPENSSL_LIBRARIES "${OPENSSL_LIBRARIES};${CMAKE_DL_LIBS};${CMAKE_THREAD_LIBS_INIT}")
set(OPENSSL_LIBRARIES "${OPENSSL_LIBRARIES};${CMAKE_THREAD_LIBS_INIT}")

add_definition_if_library_exists(c memset_s "string.h" HAVE_MEMSET_S)
add_definition_if_library_exists(c explicit_bzero "strings.h" HAVE_EXPLICIT_BZERO)
Expand Down

0 comments on commit 82e4516

Please sign in to comment.