ext: Allow use system glew with system ffmpeg (macOS)

This commit is contained in:
李通洲 2021-11-30 14:18:02 +08:00
parent 521b04452e
commit 0c3c89a093

View File

@ -1,5 +1,5 @@
find_package(GLEW)
if(NOT APPLE AND GLEW_FOUND)
if((NOT APPLE OR USE_SYSTEM_FFMPEG) AND GLEW_FOUND)
add_library(system_glew INTERFACE)
add_library(Ext::GLEW ALIAS system_glew)
target_link_libraries(system_glew INTERFACE GLEW::GLEW)