修复第三方引用ZLM编译webrtc避免生成dll文件

This commit is contained in:
baiyfcu 2022-10-17 10:53:39 +08:00
parent eac5a5b1dc
commit 4a51d6b488

View File

@ -53,7 +53,7 @@ file(GLOB WEBRTC_SRC_LIST
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/*.h
${CMAKE_CURRENT_SOURCE_DIR}/*.hpp)
add_library(webrtc ${WEBRTC_SRC_LIST})
add_library(webrtc STATIC ${WEBRTC_SRC_LIST})
add_library(ZLMediaKit::WebRTC ALIAS webrtc)
target_compile_definitions(webrtc
# ENABLE_SCTP