testffmpeg: treat Khronos headers as system headers

main
Anonymous Maarten 2024-04-18 17:03:34 +02:00 committed by Sam Lantinga
parent 9c65738926
commit 911fc9b17e
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ if(FFmpeg_FOUND AND LIBAVUTIL_AVFRAME_HAS_CH_LAYOUT)
target_link_libraries(testffmpeg PRIVATE OpenGL::EGL) target_link_libraries(testffmpeg PRIVATE OpenGL::EGL)
target_compile_definitions(testffmpeg PRIVATE HAVE_EGL) target_compile_definitions(testffmpeg PRIVATE HAVE_EGL)
endif() endif()
target_include_directories(testffmpeg BEFORE PRIVATE ${SDL3_SOURCE_DIR}/src/video/khronos) target_include_directories(testffmpeg SYSTEM BEFORE PRIVATE ${SDL3_SOURCE_DIR}/src/video/khronos)
target_link_libraries(testffmpeg PRIVATE ${FFMPEG_LIBRARIES}) target_link_libraries(testffmpeg PRIVATE ${FFMPEG_LIBRARIES})
else() else()
message(STATUS "Can't find ffmpeg 5.1.3 or newer, skipping testffmpeg") message(STATUS "Can't find ffmpeg 5.1.3 or newer, skipping testffmpeg")