添加 dl 依赖库

This commit is contained in:
Xiaofeng Wang 2022-06-12 18:27:55 +08:00
parent 9e18428d7b
commit 705875f410

View File

@ -290,6 +290,7 @@ if (ENABLE_FFMPEG)
if (AVUTIL_FOUND AND AVCODEC_FOUND AND SWSCALE_FOUND AND SWRESAMPLE_FOUND)
add_definitions(-DENABLE_FFMPEG)
list(APPEND LINK_LIB_LIST ${CMAKE_DL_LIBS})
else ()
set(ENABLE_FFMPEG off)
message(WARNING "ffmpeg相关功能未找到")