Browse Source

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.
pull/134/merge
Vladimír Vondruš 10 years ago
parent
commit
3f4156a846
  1. 14
      modules/FindEGL.cmake

14
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

Loading…
Cancel
Save