Browse Source

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

Sam Edwards 7 years ago
parent
commit
f07b713e8d
2 changed files with 4 additions and 4 deletions
  1. 2 2
      cmake/modules/FindOpenGLES1.cmake
  2. 2 2
      cmake/modules/FindOpenGLES2.cmake

+ 2 - 2
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")
 

+ 2 - 2
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")