cmake: don't die when running on macOS

still same result for me on Linux

Change-Id: Icb74ffc5989c0b96f069f6ec33c2a707e012414b
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
Albert Astals Cid 2019-02-11 16:42:51 +01:00
parent 5ad3803def
commit 6a2577e04b

View File

@ -373,7 +373,7 @@ ioctl(fd, FBIOGET_VSCREENINFO, &vinfo);
# opengles3 # opengles3
qt_config_compile_test(opengles3 qt_config_compile_test(opengles3
LABEL "OpenGL ES 3.0" LABEL "OpenGL ES 3.0"
LIBRARIES OpenGL::OpenGL LIBRARIES OpenGL::GL
CODE CODE
"#ifdef __APPLE__ "#ifdef __APPLE__
# include <OpenGLES/ES3/gl.h> # include <OpenGLES/ES3/gl.h>
@ -400,7 +400,7 @@ glMapBufferRange(GL_ARRAY_BUFFER, 0, 0, GL_MAP_READ_BIT);
# opengles31 # opengles31
qt_config_compile_test(opengles31 qt_config_compile_test(opengles31
LABEL "OpenGL ES 3.1" LABEL "OpenGL ES 3.1"
LIBRARIES OpenGL::OpenGL LIBRARIES OpenGL::GL
CODE CODE
" "
#include <GLES3/gl31.h> #include <GLES3/gl31.h>