STYLE: don't test twice for APPLE

Alex
This commit is contained in:
Alexander Neundorf 2007-07-03 11:41:37 -04:00
parent 2497822fd6
commit d9ec3bbe43
1 changed files with 65 additions and 63 deletions

View File

@ -14,11 +14,6 @@
# On OSX default to using the framework version of opengl
# People will have to change the cache values of OPENGL_glu_LIBRARY
# and OPENGL_gl_LIBRARY to use OpenGL with X11 on OSX
IF (APPLE)
FIND_LIBRARY(OPENGL_gl_LIBRARY OpenGL DOC "OpenGL lib for OSX")
FIND_LIBRARY(OPENGL_glu_LIBRARY AGL DOC "AGL lib for OSX")
FIND_PATH(OPENGL_INCLUDE_DIR OpenGL/gl.h DOC "Include for OpenGL on OSX")
ENDIF (APPLE)
IF (WIN32)
IF (CYGWIN)
@ -52,7 +47,14 @@ IF (WIN32)
ENDIF (CYGWIN)
ELSE (WIN32)
IF(NOT APPLE)
IF (APPLE)
FIND_LIBRARY(OPENGL_gl_LIBRARY OpenGL DOC "OpenGL lib for OSX")
FIND_LIBRARY(OPENGL_glu_LIBRARY AGL DOC "AGL lib for OSX")
FIND_PATH(OPENGL_INCLUDE_DIR OpenGL/gl.h DOC "Include for OpenGL on OSX")
ELSE(APPLE)
# The first line below is to make sure that the proper headers
# are used on a Linux machine with the NVidia drivers installed.
@ -117,7 +119,7 @@ ELSE (WIN32)
/usr/shlib
)
ENDIF(NOT APPLE)
ENDIF(APPLE)
ENDIF (WIN32)
SET( OPENGL_FOUND "NO" )