Commit c685c96b authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: use standard include path for OpenGL

parent 88bd3b52
...@@ -17,7 +17,9 @@ ...@@ -17,7 +17,9 @@
IF (APPLE) IF (APPLE)
FIND_LIBRARY(OPENGL_gl_LIBRARY OpenGL DOC "OpenGL lib for OSX") FIND_LIBRARY(OPENGL_gl_LIBRARY OpenGL DOC "OpenGL lib for OSX")
FIND_LIBRARY(OPENGL_glu_LIBRARY AGL DOC "AGL 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) ENDIF (APPLE)
IF (WIN32) IF (WIN32)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment