CMake: Don't search for the OpenGL library on Mac OS X. It's always there.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 20 Mar 2015 11:51:03 -0400
changeset 9411 6810478a60e9
parent 9410 e25530faeda0
child 9412 8b1436ce1028
CMake: Don't search for the OpenGL library on Mac OS X. It's always there.
CMakeLists.txt
--- a/CMakeLists.txt	Fri Mar 20 11:11:44 2015 -0400
+++ b/CMakeLists.txt	Fri Mar 20 11:51:03 2015 -0400
@@ -1151,10 +1151,6 @@
       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()