Commit 70191a9302beb11eb8e41d4d4ade66b092c7936f

Ryan C. Gordon 2015-03-20T11:51:03

CMake: Don't search for the OpenGL library on Mac OS X. It's always there.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bb69a84..43d1609 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1151,10 +1151,6 @@ elseif(APPLE)
       set(SDL_VIDEO_OPENGL 1)
       set(SDL_VIDEO_OPENGL_CGL 1)
       set(SDL_VIDEO_RENDER_OGL 1)
-      if(DARWIN)
-        find_library(OpenGL_LIBRARY OpenGL)
-        list(APPEND EXTRA_LIBRARIES ${OpenGL_LIBRARY})
-      endif()
       set(HAVE_VIDEO_OPENGL TRUE)
     endif()
   endif()