Changeset ac2e4b777eefca1556904e35541cebd4287cf370

Show
Ignore:
Timestamp:
25/02/08 23:02:42 (9 months ago)
Author:
Faustino Osuna <riquedafreak@videolan.org>
git-committer:
Faustino Osuna <riquedafreak@videolan.org> 1203976962 +0000
git-parent:

[d68d15e56bbe53cd2fe2e8bc4697f999004c782a]

git-author:
Faustino Osuna <riquedafreak@videolan.org> 1203976962 +0000
Message:

cmake/FindFFmpeg.cmake: Add sub library's CFLAGS to FFmpeg_CFLAGS.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • extras/buildsystem/cmake/include/FindFFmpeg.cmake

    r762d9f9 rac2e4b7  
    2020            find_library( ${library}_LIBRARY ${library} ) 
    2121            if (${library}_LIBRARY) 
     22              pkg_check_modules(${library}_LIBRARY lib${library}) 
     23              set(FFmpeg_CFLAGS "${FFmpeg_CFLAGS} ${${library}_LIBRARY_CFLAGS}") 
    2224              set(FFmpeg_LIBRARIES "${library};${FFmpeg_LIBRARIES}") 
    2325              set(FFmpeg_FOUND TRUE CACHE INTERNAL "") 
     
    2729            find_library( ${library}_LIBRARY ${library} ) 
    2830            if (${library}_LIBRARY) 
     31              pkg_check_modules(${library}_LIBRARY lib${library}) 
     32              set(FFmpeg_CFLAGS "${FFmpeg_CFLAGS} ${${library}_LIBRARY_CFLAGS}") 
    2933              set(FFmpeg_LIBRARIES "${library};${FFmpeg_LIBRARIES}") 
    3034            endif (${library}_LIBRARY)