diff --git a/CMake/Packages/FindFFmpeg.cmake b/CMake/Packages/FindFFmpeg.cmake index 91f2f2f50..148c7bd99 100644 --- a/CMake/Packages/FindFFmpeg.cmake +++ b/CMake/Packages/FindFFmpeg.cmake @@ -9,6 +9,7 @@ # # Created by Robert Osfield. # Modified by Lukas Lalinsky. +# Modified by Leon Styhre. # In ffmpeg code, old version use "#include " and newer use "#include " # In OSG ffmpeg plugin, we use "#include " for compatibility with old version of ffmpeg @@ -48,7 +49,7 @@ MACRO(FFMPEG_FIND varname shortname headername) DOC "Location of FFMPEG Headers" ) - pkg_check_modules(FFMPEG_${varname} lib${shortname}) + pkg_check_modules(FFMPEG_${varname} lib${shortname} REQUIRED) IF (FFMPEG_${varname}_LIBRARIES AND FFMPEG_${varname}_INCLUDE_DIRS) SET(FFMPEG_${varname}_FOUND 1)