mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
gl/build: also check for the GL/gl.h header
In order to successfully build against a detected libGL library we also need headers
This commit is contained in:
parent
d8bc42fb30
commit
a03f5f5de1
1 changed files with 4 additions and 0 deletions
|
@ -272,6 +272,10 @@ if need_api_opengl != 'no' or need_platform_glx != 'no'
|
|||
gl_dep = cc.find_library('GL', required : false)
|
||||
endif
|
||||
|
||||
if not cc.has_header('GL/gl.h', required : false)
|
||||
gl_dep = unneeded_dep
|
||||
endif
|
||||
|
||||
if not gl_dep.found() and need_api_opengl == 'yes'
|
||||
error ('Could not find requested OpenGL library')
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue