ENH: use standard include path for OpenGL

This commit is contained in:
Bill Hoffman 2006-03-14 15:19:37 -05:00
parent 88bd3b5281
commit c685c96b29
1 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,9 @@
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")
# since many package include opengl by GL/gl.h look for this version
# instead of the framework OpenGL/gl.h
FIND_PATH(OPENGL_INCLUDE_DIR NAMES gl.h GL/gl.h DOC "Include for OpenGL on OSX")
ENDIF (APPLE)
IF (WIN32)