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 # Library
find_library(EGL_LIBRARY NAMES find_library(EGL_LIBRARY NAMES
EGL 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 # Include dir
find_path(EGL_INCLUDE_DIR find_path(EGL_INCLUDE_DIR NAMES
NAMES EGL/egl.h) EGL/egl.h
# iOS
EAGL.h)
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package_handle_standard_args("EGL" DEFAULT_MSG find_package_handle_standard_args("EGL" DEFAULT_MSG

Loading…
Cancel
Save