Add option to link to OpenGL ES, fixes #1051
authorSfan5 <sfan5@live.de>
Fri, 3 Jan 2014 09:17:01 +0000 (10:17 +0100)
committerIlya Zhuravlev <zhuravlevilya@ya.ru>
Sun, 5 Jan 2014 16:50:55 +0000 (20:50 +0400)
src/CMakeLists.txt

index 90f5867856b6029b2fe2d76c75491e65cfbfe36f..6418b3b26dd15e1f8f4598d4b24dea3b076a6089 100644 (file)
@@ -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)