cmake: don't use hardcoded lib names when using system ffmpeg and remove unneeded line

This commit is contained in:
scribam 2018-06-12 22:19:10 +02:00
parent 3a9778668a
commit ea8397fbab

View file

@ -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()