openssl未找到时关闭webrtc编译

This commit is contained in:
ziyue 2021-12-31 10:35:52 +08:00
parent c0afcc48e5
commit 038a604d4f

View File

@ -152,6 +152,7 @@ if (OPENSSL_FOUND AND ENABLE_OPENSSL)
list(APPEND LINK_LIB_LIST dl) list(APPEND LINK_LIB_LIST dl)
endif () endif ()
else () else ()
set(ENABLE_OPENSSL off)
message(WARNING "openssl未找到rtmp将不支持flash播放器https/wss/rtsps/rtmps也将失效") message(WARNING "openssl未找到rtmp将不支持flash播放器https/wss/rtsps/rtmps也将失效")
endif () endif ()
@ -295,7 +296,7 @@ endif ()
if (ENABLE_WEBRTC) if (ENABLE_WEBRTC)
#srtp #srtp
find_package(SRTP QUIET) find_package(SRTP QUIET)
if (SRTP_FOUND) if (SRTP_FOUND AND ENABLE_OPENSSL)
message(STATUS "found library:${SRTP_LIBRARIES}") message(STATUS "found library:${SRTP_LIBRARIES}")
include_directories(${SRTP_INCLUDE_DIRS}) include_directories(${SRTP_INCLUDE_DIRS})
list(APPEND LINK_LIB_LIST ${SRTP_LIBRARIES}) list(APPEND LINK_LIB_LIST ${SRTP_LIBRARIES})