diff --git a/cmake/modules/FindOpenGLES1.cmake b/cmake/modules/FindOpenGLES1.cmake index 2314cef70f..c36714e324 100644 --- a/cmake/modules/FindOpenGLES1.cmake +++ b/cmake/modules/FindOpenGLES1.cmake @@ -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") diff --git a/cmake/modules/FindOpenGLES2.cmake b/cmake/modules/FindOpenGLES2.cmake index 42a8cfedce..f2ceb76ecd 100644 --- a/cmake/modules/FindOpenGLES2.cmake +++ b/cmake/modules/FindOpenGLES2.cmake @@ -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")