meson: lets keep dependency

the reason for using dependency here is that meson *sometimes* uses
dependency as a wrapper arround finding a dependency, this is usefull if
a known target is having different library names on different OSs. On
macos the cc.find_library was causing errors, since the library is not
called GL there.

This fixes the macos build.
This commit is contained in:
Marcel Hollerbach 2019-01-03 23:07:36 +01:00
parent 93baf085ec
commit 859afc8f54
1 changed files with 3 additions and 3 deletions

View File

@ -167,10 +167,10 @@ endif
if get_option('opengl') != 'none'
if get_option('opengl') == 'es-egl'
config_h.set('GL_GLES', '1')
gl_deps += cc.find_library('GLESv2')
gl_deps += cc.find_library('EGL')
gl_deps += dependency('glesv2')
gl_deps += dependency('egl')
else
gl_deps += cc.find_library('GL')
gl_deps += dependency('gl')
endif
endif