STYLE: don't test twice for APPLE
Alex
This commit is contained in:
parent
2497822fd6
commit
d9ec3bbe43
@ -14,11 +14,6 @@
|
|||||||
# On OSX default to using the framework version of opengl
|
# On OSX default to using the framework version of opengl
|
||||||
# People will have to change the cache values of OPENGL_glu_LIBRARY
|
# People will have to change the cache values of OPENGL_glu_LIBRARY
|
||||||
# and OPENGL_gl_LIBRARY to use OpenGL with X11 on OSX
|
# 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 (WIN32)
|
||||||
IF (CYGWIN)
|
IF (CYGWIN)
|
||||||
@ -52,7 +47,14 @@ IF (WIN32)
|
|||||||
ENDIF (CYGWIN)
|
ENDIF (CYGWIN)
|
||||||
|
|
||||||
ELSE (WIN32)
|
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
|
# The first line below is to make sure that the proper headers
|
||||||
# are used on a Linux machine with the NVidia drivers installed.
|
# are used on a Linux machine with the NVidia drivers installed.
|
||||||
@ -117,7 +119,7 @@ ELSE (WIN32)
|
|||||||
/usr/shlib
|
/usr/shlib
|
||||||
)
|
)
|
||||||
|
|
||||||
ENDIF(NOT APPLE)
|
ENDIF(APPLE)
|
||||||
ENDIF (WIN32)
|
ENDIF (WIN32)
|
||||||
|
|
||||||
SET( OPENGL_FOUND "NO" )
|
SET( OPENGL_FOUND "NO" )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user