diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-01-15 13:39:34 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-01-15 13:42:20 +0300 |
commit | 473bcff5cb45d276e0879868b617299d90d09580 (patch) | |
tree | 3d39f5779f9ea11d6d5a26122e730a6f3e5e880e /tests | |
parent | 5319b79965066226ae9f0c38f02d43d35f7bd21f (diff) |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gtests/ffmpeg/CMakeLists.txt | 12 |
1 files 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} ) -include_directories(${INC}) +if(WITH_IMAGE_OPENJPEG) + set(LIB ${LIB} ${OPENJPEG_LIBRARIES}) +endif() -setup_libdirs() +include_directories(${INC}) BLENDER_SRC_GTEST(ffmpeg "ffmpeg_codecs.cc" "${LIB}") - -setup_liblinks(ffmpeg_test) |