From 5682ca156c66032a605bee021319d49d7667aec0 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 11 Feb 2019 11:19:15 +0100 Subject: [PATCH] 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 --- src/gui/configure.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake index 94801ba41e..162e00ed1d 100644 --- a/src/gui/configure.cmake +++ b/src/gui/configure.cmake @@ -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 #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