From 0c3c89a0939d4bd36030977d9de6f6472d777bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 30 Nov 2021 14:18:02 +0800 Subject: [PATCH] ext: Allow use system glew with system ffmpeg (macOS) --- ext/glew/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/glew/CMakeLists.txt b/ext/glew/CMakeLists.txt index f147939a92..3b242d9ff4 100644 --- a/ext/glew/CMakeLists.txt +++ b/ext/glew/CMakeLists.txt @@ -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)