From 038a604d4f2c9ff189af424a11b33734f875ef4f Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Fri, 31 Dec 2021 10:35:52 +0800 Subject: [PATCH] =?UTF-8?q?openssl=E6=9C=AA=E6=89=BE=E5=88=B0=E6=97=B6?= =?UTF-8?q?=E5=85=B3=E9=97=ADwebrtc=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 166a46ff..83479245 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,6 +152,7 @@ if (OPENSSL_FOUND AND ENABLE_OPENSSL) list(APPEND LINK_LIB_LIST dl) endif () else () + set(ENABLE_OPENSSL off) message(WARNING "openssl未找到,rtmp将不支持flash播放器,https/wss/rtsps/rtmps也将失效") endif () @@ -295,7 +296,7 @@ endif () if (ENABLE_WEBRTC) #查找srtp是否安装 find_package(SRTP QUIET) - if (SRTP_FOUND) + if (SRTP_FOUND AND ENABLE_OPENSSL) message(STATUS "found library:${SRTP_LIBRARIES}") include_directories(${SRTP_INCLUDE_DIRS}) list(APPEND LINK_LIB_LIST ${SRTP_LIBRARIES})