Browse Source

ENH: On apple do not look for X11

Andy Cedilnik 19 years ago
parent
commit
cf80510ac5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Modules/FindOpenGL.cmake

+ 2 - 0
Modules/FindOpenGL.cmake

@@ -52,6 +52,7 @@ IF (WIN32)
   ENDIF (CYGWIN)
 
 ELSE (WIN32)
+  IF(NOT APPLE)
 
   # The first line below is to make sure that the proper headers
   # are used on a Linux machine with the NVidia drivers installed.
@@ -116,6 +117,7 @@ ELSE (WIN32)
           /usr/shlib
   )
 
+  ENDIF(NOT APPLE)
 ENDIF (WIN32)
 
 SET( OPENGL_FOUND "NO" )