CMake: Put the bundled FFmpeg's headers first on the include path

On macOS a newer FFmpeg's headers (Homebrew's) came first through another
library's include directory, and AVIDump.cpp failed to build against them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-25 22:27:54 +01:00
1 parent d0e3141f43
commit bbc6d2e1e4
1 file changed
+3
+3
View File
@@ -224,6 +224,9 @@ endif()
# FFMPEG_DIR is asked for.
if(USE_FFMPEG AND NOT USE_SYSTEM_FFMPEG AND NOT FFMPEG_DIR)
set(BUILD_BUNDLED_FFMPEG ON)
# First on the include path, ahead of any other FFmpeg's headers that come along with another
# library's include directory (Homebrew's, for one).
include_directories(BEFORE ext/ffmpeg)
else()
set(BUILD_BUNDLED_FFMPEG OFF)
endif()