From ea8397fbabc058405247f12329feb1420ead29e3 Mon Sep 17 00:00:00 2001 From: scribam Date: Tue, 12 Jun 2018 22:19:10 +0200 Subject: [PATCH] cmake: don't use hardcoded lib names when using system ffmpeg and remove unneeded line --- rpcs3/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpcs3/CMakeLists.txt b/rpcs3/CMakeLists.txt index 72f61529d1..35e1b9112d 100644 --- a/rpcs3/CMakeLists.txt +++ b/rpcs3/CMakeLists.txt @@ -425,8 +425,7 @@ else() endif() target_link_libraries(rpcs3 ${CMAKE_DL_LIBS} ZLIB::ZLIB ${ADDITIONAL_LIBS}) if(USE_SYSTEM_FFMPEG) - link_libraries(${FFMPEG_LIBRARY_DIR}) - target_link_libraries(rpcs3 libavformat.so libavcodec.so libavutil.so libswscale.so) + target_link_libraries(rpcs3 ${FFMPEG_LIBRARIES}) else() target_link_libraries(rpcs3 libavformat.a libavcodec.a libavutil.a libswscale.a) endif()