From: Sfan5 Date: Fri, 3 Jan 2014 09:17:01 +0000 (+0100) Subject: Add option to link to OpenGL ES, fixes #1051 X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=160e2b7b7d1edc7630db0eb0ebbd796a66aab89a;p=zefram%2Fminetest%2Fminetest_engine.git Add option to link to OpenGL ES, fixes #1051 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 90f58678..6418b3b2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -170,7 +170,12 @@ endif() find_package(Sqlite3 REQUIRED) find_package(Json REQUIRED) -find_package(OpenGLES2) + +option(ENABLE_GLES "Enable OpenGL ES support" 0) +mark_as_advanced(ENABLE_GLES) +if(ENABLE_GLES) + find_package(OpenGLES2) +endif(ENABLE_GLES) if(USE_FREETYPE) find_package(Freetype REQUIRED)