Do not require opus in shared builds

This commit is contained in:
LoveEevee 2021-08-30 08:07:37 +03:00
parent a9c398e8c8
commit 63ec122712

View File

@ -72,7 +72,11 @@ macro(setup_target TARGET)
else()
target_include_directories(${TARGET} PRIVATE ${FFMPEG_INCLUDE_DIRS})
if(LINK)
target_link_libraries(${TARGET} avformat avcodec avutil swresample opus pthread m z)
if(BUILD_STATIC)
target_link_libraries(${TARGET} avformat avcodec avutil swresample opus pthread m z)
else()
target_link_libraries(${TARGET} ${FFMPEG_LIBRARIES})
endif()
endif()
endif()
endif()