Depend on OpenSSL::Crypto and OpenSSL::SSL

Maybe only one is strictly required, but the list of headers used in
ns_turn_openssl.h includes things from both.
This commit is contained in:
Jeremy Murphy 2022-08-16 12:41:44 +10:00
parent 85c85ab34c
commit 832f11331f

View File

@ -37,6 +37,11 @@ if(hiredis_FOUND)
else()
list(APPEND COMMON_DEFINED TURN_NO_HIREDIS)
endif()
find_package(OpenSSL REQUIRED Crypto SSL)
list(APPEND COMMON_LIBS OpenSSL::Crypto)
list(APPEND COMMON_LIBS OpenSSL::SSL)
message("COMMON_LIBS:${COMMON_LIBS}")
add_library(${PROJECT_NAME} ${SOURCE_FILES} ${HEADER_FILES})