for ssl static link add ld library link

This commit is contained in:
xgj 2021-06-11 11:04:43 +08:00
parent 40c1cb239d
commit 5b8b5c0ed5

View File

@ -87,6 +87,10 @@ if (OPENSSL_FOUND AND ENABLE_OPENSSL)
include_directories(${OPENSSL_INCLUDE_DIR})
add_definitions(-DENABLE_OPENSSL)
list(APPEND LINK_LIB_LIST ${OPENSSL_LIBRARIES})
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
list(APPEND LINK_LIB_LIST dl)
endif()
else()
message(WARNING "openssl未找到rtmp将不支持flash播放器https/wss/rtsps/rtmps也将失效")
endif ()