From: Maciej SroczyƄski Date: Wed, 26 Feb 2020 16:29:10 +0000 (+0000) Subject: set default FREEGLUT_GLES=ON on android X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=f94f067b4a2f6bc59f9d5bcf83fc28ff2e0ff531;hp=412dc0b70402bb4e974287672335c1b6b7758b77;p=freeglut 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 --- 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)