CMake: Change FindOpenGLES* modules so they don't even try on Apple

This commit is contained in:
Sam Edwards 2018-10-27 21:11:14 -06:00
parent 11a75eab99
commit f07b713e8d
2 changed files with 4 additions and 4 deletions

View File

@ -10,13 +10,13 @@
# OPENGLES1_LIBRARY - the library to link against for OpenGL ES 1.x
#
if(NOT OPENGLES1_INCLUDE_DIR)
if(NOT OPENGLES1_INCLUDE_DIR AND NOT APPLE)
find_path(OPENGLES1_INCLUDE_DIR "GLES/gl.h")
mark_as_advanced(OPENGLES1_INCLUDE_DIR)
endif()
if(NOT OPENGLES1_LIBRARY)
if(NOT OPENGLES1_LIBRARY AND NOT APPLE)
find_library(OPENGLES1_LIBRARY
NAMES "GLESv1" "GLESv1_CM" "GLES_CM")

View File

@ -10,13 +10,13 @@
# OPENGLES2_LIBRARY - the library to link against for OpenGL ES 2.x
#
if(NOT OPENGLES2_INCLUDE_DIR)
if(NOT OPENGLES2_INCLUDE_DIR AND NOT APPLE)
find_path(OPENGLES2_INCLUDE_DIR "GLES2/gl2.h")
mark_as_advanced(OPENGLES2_INCLUDE_DIR)
endif()
if(NOT OPENGLES2_LIBRARY)
if(NOT OPENGLES2_LIBRARY AND NOT APPLE)
find_library(OPENGLES2_LIBRARY
NAMES "GLESv2")