diff options
author | Yves Starreveld <ystarrev@uwo.ca> | 2002-09-06 18:03:47 (GMT) |
---|---|---|
committer | Yves Starreveld <ystarrev@uwo.ca> | 2002-09-06 18:03:47 (GMT) |
commit | 979bd1ec6122ff75551107fcad57de405eb6fa16 (patch) | |
tree | b1e7a5c128900d09cb3195bc93208783ab1f95c9 /Modules/FindOpenGL.cmake | |
parent | 79ddd9426c3e6e1afb7b0a6797e9e827c4a4947b (diff) | |
download | CMake-979bd1ec6122ff75551107fcad57de405eb6fa16.zip CMake-979bd1ec6122ff75551107fcad57de405eb6fa16.tar.gz CMake-979bd1ec6122ff75551107fcad57de405eb6fa16.tar.bz2 |
ERR: Fix opengl finding on osx
Diffstat (limited to 'Modules/FindOpenGL.cmake')
-rw-r--r-- | Modules/FindOpenGL.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake index aeaf519..026c214 100644 --- a/Modules/FindOpenGL.cmake +++ b/Modules/FindOpenGL.cmake @@ -140,6 +140,18 @@ IF(OPENGL_INCLUDE_DIR) ENDIF(OPENGL_INCLUDE_DIR) +# On OSX, OpenGL is always there - this will need refining for those using OpenGL with X11 +IF (APPLE) + SET (OPENGL_FOUND "YES") + SET (OPENGL_GLU_FOUND "YES") + SET (OPENGL_LIBRARIES "-framework AGL -framework OpenGL" CACHE STRING "OpenGL lib for OSX") + SET (OPENGL_LIBRARY ${OPENGL_LIBRARIES} CACHE STRING "OpenGL lib for OSX (for CMake 1.4)") + SET (OPENGL_gl_LIBRARY "-framework OpenGL" CACHE STRING "OpenGL lib for OSX") + SET (OPENGL_glu_LIBRARY "-framework AGL" CACHE STRING "AGL lib for OSX") +ENDIF (APPLE) + + + MARK_AS_ADVANCED( OPENGL_INCLUDE_DIR OPENGL_xmesa_INCLUDE_DIR |