diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-03-14 20:19:37 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-03-14 20:19:37 (GMT) |
commit | c685c96b2972f6e68c3865f98307218416e2c3b4 (patch) | |
tree | 17e060403f22aed586b57da0c18426e2be05a57c /Modules | |
parent | 88bd3b5281a146e1d1a31af4ab768a427341aedf (diff) | |
download | CMake-c685c96b2972f6e68c3865f98307218416e2c3b4.zip CMake-c685c96b2972f6e68c3865f98307218416e2c3b4.tar.gz CMake-c685c96b2972f6e68c3865f98307218416e2c3b4.tar.bz2 |
ENH: use standard include path for OpenGL
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOpenGL.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake index 4c18911..a41646e 100644 --- a/Modules/FindOpenGL.cmake +++ b/Modules/FindOpenGL.cmake @@ -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) |