From 832f11331fd241e4e8f8b77805dafc9805270e7a Mon Sep 17 00:00:00 2001 From: Jeremy Murphy Date: Tue, 16 Aug 2022 12:41:44 +1000 Subject: [PATCH] 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. --- src/apps/common/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/apps/common/CMakeLists.txt b/src/apps/common/CMakeLists.txt index 359dfd7..af5ad63 100644 --- a/src/apps/common/CMakeLists.txt +++ b/src/apps/common/CMakeLists.txt @@ -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})