X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=extras%2Fbuildsystem%2Fcmake%2Finclude%2FFindFFmpeg.cmake;h=9e693143cb1b198fdaae383bbacb077c32c25e18;hb=260a18369697f654ded096de11ba1eacce510bb6;hp=8dd7948ee2d81441d6f53ae4e1641e7389d097fe;hpb=06fe038d1ee76a1014c47d645ab6b717354e7fcd;p=vlc diff --git a/extras/buildsystem/cmake/include/FindFFmpeg.cmake b/extras/buildsystem/cmake/include/FindFFmpeg.cmake index 8dd7948ee2..9e693143cb 100644 --- a/extras/buildsystem/cmake/include/FindFFmpeg.cmake +++ b/extras/buildsystem/cmake/include/FindFFmpeg.cmake @@ -18,18 +18,16 @@ if (NOT FFmpeg_SEARCHED) set(FFmpeg_LIBRARIES "") foreach (library ffmpeg avcodec avformat avutil postproc swscale) find_library( ${library}_LIBRARY ${library} ) - set( ${library}_LIBRARY_FOUND NOT ${${library}_LIBRARY} ) - if (${library}_LIBRARY_FOUND) + if (${library}_LIBRARY) set(FFmpeg_LIBRARIES "${library};${FFmpeg_LIBRARIES}") set(FFmpeg_FOUND TRUE CACHE INTERNAL "") - endif (${library}_LIBRARY_FOUND) + endif (${library}_LIBRARY) endforeach (library) foreach (library a52 faac lame z png mp3lame twolame) find_library( ${library}_LIBRARY ${library} ) - set( ${library}_LIBRARY_FOUND NOT ${${library}_LIBRARY} ) - if (${library}_LIBRARY_FOUND) + if (${library}_LIBRARY) set(FFmpeg_LIBRARIES "${library};${FFmpeg_LIBRARIES}") - endif (${library}_LIBRARY_FOUND) + endif (${library}_LIBRARY) endforeach (library) set(FFmpeg_LIBRARIES "${FFmpeg_LIBRARIES}" CACHE INTERNAL STRING) endif (NOT FFmpeg_FOUND)