From f94f067b4a2f6bc59f9d5bcf83fc28ff2e0ff531 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Maciej=20Sroczy=C5=84ski?= Date: Wed, 26 Feb 2020 16:29:10 +0000 Subject: [PATCH] set default FREEGLUT_GLES=ON on android (cherry picked from commit 0a464e7d6ede859c9f155a5f9fb8cf49fd258374) git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1864 7f0cb862-5218-0410-a997-914c9d46530a --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f403af..d3d1d83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,11 @@ ELSE() ENDIF() # OpenGL ES support -OPTION(FREEGLUT_GLES "Use OpenGL ES (requires EGL)" OFF) +IF(ANDROID) + OPTION(FREEGLUT_GLES "Use OpenGL ES (requires EGL)" ON) +ELSE() + OPTION(FREEGLUT_GLES "Use OpenGL ES (requires EGL)" OFF) +ENDIF() # option to build either as "glut" (ON) or "freeglut" (OFF) IF(WIN32) -- 1.7.10.4