cmake: Fix linking of the opengles tests
The FindOpenGL.cmake file in cmake has a comment that is not very reassuring this should work, but it actually works for me Change-Id: I05b0ac6ec551252f8c58ab7abf4254d2d09a069c Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
ab2265cad7
commit
5682ca156c
@ -373,6 +373,8 @@ ioctl(fd, FBIOGET_VSCREENINFO, &vinfo);
|
||||
# opengles3
|
||||
qt_config_compile_test(opengles3
|
||||
LABEL "OpenGL ES 3.0"
|
||||
LIBRARIES OpenGL::OpenGL
|
||||
CODE
|
||||
"#ifdef __APPLE__
|
||||
# include <OpenGLES/ES3/gl.h>
|
||||
#else
|
||||
@ -398,6 +400,8 @@ glMapBufferRange(GL_ARRAY_BUFFER, 0, 0, GL_MAP_READ_BIT);
|
||||
# opengles31
|
||||
qt_config_compile_test(opengles31
|
||||
LABEL "OpenGL ES 3.1"
|
||||
LIBRARIES OpenGL::OpenGL
|
||||
CODE
|
||||
"
|
||||
#include <GLES3/gl31.h>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user