mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-01 20:18:15 +01:00
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:
1 parent
d0e3141f43
commit
bbc6d2e1e4
1 file changed
+3
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user