From: Faustino Osuna Date: Mon, 25 Feb 2008 22:02:42 +0000 (+0000) Subject: cmake/FindFFmpeg.cmake: Add sub library's CFLAGS to FFmpeg_CFLAGS. X-Git-Tag: 0.9.0-test0~2487 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ac2e4b777eefca1556904e35541cebd4287cf370;p=vlc cmake/FindFFmpeg.cmake: Add sub library's CFLAGS to FFmpeg_CFLAGS. --- diff --git a/extras/buildsystem/cmake/include/FindFFmpeg.cmake b/extras/buildsystem/cmake/include/FindFFmpeg.cmake index 9e693143cb..7784b665c9 100644 --- a/extras/buildsystem/cmake/include/FindFFmpeg.cmake +++ b/extras/buildsystem/cmake/include/FindFFmpeg.cmake @@ -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)