From 3f4156a846807a62e70bc92f1fb575f74bb42219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 4 Feb 2016 18:44:30 +0100 Subject: [PATCH] modules: update FindEGL.cmake to work on iOS. It actually finds EAGL, which is slightly completely different from EGL and I currently have no use for it. --- modules/FindEGL.cmake | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/modules/FindEGL.cmake b/modules/FindEGL.cmake index 6f8c99916..66cf99e2e 100644 --- a/modules/FindEGL.cmake +++ b/modules/FindEGL.cmake @@ -35,11 +35,19 @@ # Library find_library(EGL_LIBRARY NAMES EGL - libEGL) # ANGLE (CMake doesn't search for lib prefix on Windows) + + # ANGLE (CMake doesn't search for lib prefix on Windows) + libEGL + + # On iOS a part of OpenGLES + OpenGLES) # Include dir -find_path(EGL_INCLUDE_DIR - NAMES EGL/egl.h) +find_path(EGL_INCLUDE_DIR NAMES + EGL/egl.h + + # iOS + EAGL.h) include(FindPackageHandleStandardArgs) find_package_handle_standard_args("EGL" DEFAULT_MSG