mirror of https://github.com/PCSX2/pcsx2.git
CMake: Search specifically for the ffmpeg components we need
And fix the not-found logic.
This commit is contained in:
parent
f3e7491c3a
commit
336ef58f61
|
@ -35,8 +35,8 @@ else()
|
||||||
|
|
||||||
# Use bundled ffmpeg v4.x.x headers if we can't locate it in the system.
|
# Use bundled ffmpeg v4.x.x headers if we can't locate it in the system.
|
||||||
# We'll try to load it dynamically at runtime.
|
# We'll try to load it dynamically at runtime.
|
||||||
find_package(FFMPEG)
|
find_package(FFMPEG COMPONENTS avcodec avformat avutil swresample swscale)
|
||||||
if(NOT FFMPEG_VERSION)
|
if(NOT FFMPEG_FOUND)
|
||||||
message(WARNING "FFmpeg not found, using bundled headers.")
|
message(WARNING "FFmpeg not found, using bundled headers.")
|
||||||
set(FFMPEG_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/3rdparty/ffmpeg/include")
|
set(FFMPEG_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/3rdparty/ffmpeg/include")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue