summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meson.build5
1 files changed, 3 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index ec5d5555c4..c2f6966e7e 100644
--- a/meson.build
+++ b/meson.build
@@ -1147,9 +1147,10 @@ if features['egl-angle']
sources += files('video/out/opengl/angle_dynamic.c')
endif
-egl_dep = cc.find_library('EGL', required: get_option('egl-angle-lib'))
+egl_dep = cc.find_library('EGL', required:
+ get_option('egl-angle-lib').require(features['egl-angle']))
egl_angle_lib = get_option('egl-angle-lib').require(
- features['egl-angle'] and cc.has_function('eglCreateWindowSurface',
+ egl_dep.found() and cc.has_function('eglCreateWindowSurface',
dependencies: egl_dep,
prefix: '#include <EGL/egl.h>'),
error_message: 'egl-angle-lib could not be found!',