Commit a03f5f5d authored by Matthew Waters's avatar Matthew Waters

gl/build: also check for the GL/gl.h header

In order to successfully build against a detected libGL library we also need headers
parent d8bc42fb
......@@ -272,6 +272,10 @@ if need_api_opengl != 'no' or need_platform_glx != 'no'
gl_dep = cc.find_library('GL', required : false)
if not cc.has_header('GL/gl.h', required : false)
gl_dep = unneeded_dep
if not gl_dep.found() and need_api_opengl == 'yes'
error ('Could not find requested OpenGL library')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment