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)