From 473bcff5cb45d276e0879868b617299d90d09580 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 15 Jan 2020 11:39:34 +0100 Subject: [PATCH] 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. --- tests/gtests/ffmpeg/CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/gtests/ffmpeg/CMakeLists.txt b/tests/gtests/ffmpeg/CMakeLists.txt index 2ccdd1ffa55..8eea5d6c57b 100644 --- a/tests/gtests/ffmpeg/CMakeLists.txt +++ b/tests/gtests/ffmpeg/CMakeLists.txt @@ -25,13 +25,15 @@ set(INC ) set(LIB - + ${PNG_LIBRARIES} + ${FFMPEG_LIBRARIES} + ${ZLIB_LIBRARIES} ) +if(WITH_IMAGE_OPENJPEG) + set(LIB ${LIB} ${OPENJPEG_LIBRARIES}) +endif() + include_directories(${INC}) -setup_libdirs() - BLENDER_SRC_GTEST(ffmpeg "ffmpeg_codecs.cc" "${LIB}") - -setup_liblinks(ffmpeg_test)