Fix linking error with ffmpeg_test on Linux

The exact reason is unclear, but we might as well link just the few libraries
that are actually needed for ffmpeg.
This commit is contained in:
Brecht Van Lommel 2020-01-15 11:39:34 +01:00
parent 5319b79965
commit 473bcff5cb

@ -25,13 +25,15 @@ set(INC
) )
set(LIB set(LIB
${PNG_LIBRARIES}
${FFMPEG_LIBRARIES}
${ZLIB_LIBRARIES}
) )
if(WITH_IMAGE_OPENJPEG)
set(LIB ${LIB} ${OPENJPEG_LIBRARIES})
endif()
include_directories(${INC}) include_directories(${INC})
setup_libdirs()
BLENDER_SRC_GTEST(ffmpeg "ffmpeg_codecs.cc" "${LIB}") BLENDER_SRC_GTEST(ffmpeg "ffmpeg_codecs.cc" "${LIB}")
setup_liblinks(ffmpeg_test)