]> git.sesse.net Git - vlc/commitdiff
cmake/FindFFmpeg.cmake: Add sub library's CFLAGS to FFmpeg_CFLAGS.
authorFaustino Osuna <riquedafreak@videolan.org>
Mon, 25 Feb 2008 22:02:42 +0000 (22:02 +0000)
committerFaustino Osuna <riquedafreak@videolan.org>
Mon, 25 Feb 2008 22:02:42 +0000 (22:02 +0000)
extras/buildsystem/cmake/include/FindFFmpeg.cmake

index 9e693143cb1b198fdaae383bbacb077c32c25e18..7784b665c910c1388c0a9112ec434724e092ce19 100644 (file)
@@ -19,6 +19,8 @@ if (NOT FFmpeg_SEARCHED)
         foreach (library ffmpeg avcodec avformat avutil postproc swscale)
             find_library( ${library}_LIBRARY ${library} )
             if (${library}_LIBRARY)
+              pkg_check_modules(${library}_LIBRARY lib${library})
+              set(FFmpeg_CFLAGS "${FFmpeg_CFLAGS} ${${library}_LIBRARY_CFLAGS}")
               set(FFmpeg_LIBRARIES "${library};${FFmpeg_LIBRARIES}")
               set(FFmpeg_FOUND TRUE CACHE INTERNAL "")
             endif (${library}_LIBRARY)
@@ -26,6 +28,8 @@ if (NOT FFmpeg_SEARCHED)
         foreach (library a52 faac lame z png mp3lame twolame)
             find_library( ${library}_LIBRARY ${library} )
             if (${library}_LIBRARY)
+              pkg_check_modules(${library}_LIBRARY lib${library})
+              set(FFmpeg_CFLAGS "${FFmpeg_CFLAGS} ${${library}_LIBRARY_CFLAGS}")
               set(FFmpeg_LIBRARIES "${library};${FFmpeg_LIBRARIES}")
             endif (${library}_LIBRARY)
         endforeach (library)