aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorSfan5 <sfan5@live.de>2014-01-03 10:17:01 +0100
committerIlya Zhuravlev <zhuravlevilya@ya.ru>2014-01-05 20:50:55 +0400
commit160e2b7b7d1edc7630db0eb0ebbd796a66aab89a (patch)
treea36852ed217e49cce03ebee3ab5233ff43cb4da7 /src/CMakeLists.txt
parentb8c3221d556b94b9e14df450ecf8f3be20ba87db (diff)
downloadminetest-160e2b7b7d1edc7630db0eb0ebbd796a66aab89a.tar.gz
minetest-160e2b7b7d1edc7630db0eb0ebbd796a66aab89a.tar.bz2
minetest-160e2b7b7d1edc7630db0eb0ebbd796a66aab89a.zip
Add option to link to OpenGL ES, fixes #1051
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 90f586785..6418b3b26 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)