|
@@ -232,12 +232,10 @@ if(FFmpeg_FOUND AND LIBAVUTIL_AVFRAME_HAS_CH_LAYOUT)
|
|
|
if(APPLE)
|
|
|
target_link_options(testffmpeg PRIVATE "-Wl,-framework,CoreVideo")
|
|
|
endif()
|
|
|
- if(HAVE_OPENGLES_V2)
|
|
|
+ if(TARGET OpenGL::EGL)
|
|
|
message(DEBUG "Enabling EGL support in testffmpeg")
|
|
|
+ target_link_libraries(testffmpeg PRIVATE OpenGL::EGL)
|
|
|
target_compile_definitions(testffmpeg PRIVATE HAVE_EGL)
|
|
|
- if(TARGET OpenGL::EGL)
|
|
|
- target_link_libraries(testffmpeg PRIVATE OpenGL::EGL)
|
|
|
- endif()
|
|
|
endif()
|
|
|
target_link_libraries(testffmpeg PRIVATE ${FFMPEG_LIBRARIES})
|
|
|
else()
|