diff --git a/CMakeLists.txt b/CMakeLists.txt index c2d523e749..3bd84e2544 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -245,6 +245,7 @@ endif(NOT MSVC) if (ENABLE_USE_OPENSSL) if (ENABLE_SYSTEM_OPENSSL) find_package(OpenSSL) + link_libraries(${OPENSSL_LIBRARIES}) else() set(OpenSSL_FOUND TRUE) add_subdirectory(third_party/openssl)