@ -458,22 +458,7 @@ if (UNIX AND NOT APPLE)
endif ( )
endif ( )
if ( NOT YUZU_USE_BUNDLED_FFMPEG )
if ( NOT YUZU_USE_BUNDLED_FFMPEG )
# U s e s y s t e m i n s t a l l e d F F m p e g
# U s e s y s t e m i n s t a l l e d F F m p e g
find_package ( FFmpeg 4.3 QUIET COMPONENTS ${ FFmpeg_COMPONENTS } )
find_package ( FFmpeg 4.3 REQUIRED QUIET COMPONENTS ${ FFmpeg_COMPONENTS } )
if ( FFmpeg_FOUND )
# O v e r w r i t e a g g r e g a t e d e f i n e s f r o m F F m p e g m o d u l e t o a v o i d o v e r - l i n k i n g l i b r a r i e s .
# P r e v e n t s s h i p p i n g t o o m a n y l i b r a r i e s w i t h t h e A p p I m a g e .
set ( FFmpeg_LIBRARIES "" )
set ( FFmpeg_INCLUDE_DIR "" )
foreach ( COMPONENT ${ FFmpeg_COMPONENTS } )
set ( FFmpeg_LIBRARIES ${ FFmpeg_LIBRARIES } ${ FFmpeg_LIBRARY_${COMPONENT } } CACHE PATH "Paths to FFmpeg libraries" FORCE )
set ( FFmpeg_INCLUDE_DIR ${ FFmpeg_INCLUDE_DIR } ${ FFmpeg_INCLUDE_${COMPONENT } } CACHE PATH "Path to FFmpeg headers" FORCE )
endforeach ( )
else ( )
message ( WARNING "FFmpeg not found or too old, falling back to externals" )
set ( YUZU_USE_BUNDLED_FFMPEG ON )
endif ( )
endif ( )
endif ( )
# P r e f e r t h e - p t h r e a d f l a g o n L i n u x .
# P r e f e r t h e - p t h r e a d f l a g o n L i n u x .