summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenGL.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-03-11 17:43:26 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-03-11 17:43:26 (GMT)
commit4ce8f43b71599ac1c8cf2bbc8849c262647092e4 (patch)
tree3fc54db2a94444dd159dbc18d839d9c4ffde56ff /Modules/FindOpenGL.cmake
parent5a8e1e4942838a1ff34eb0364349af7d013e7baf (diff)
downloadCMake-4ce8f43b71599ac1c8cf2bbc8849c262647092e4.zip
CMake-4ce8f43b71599ac1c8cf2bbc8849c262647092e4.tar.gz
CMake-4ce8f43b71599ac1c8cf2bbc8849c262647092e4.tar.bz2
ENH: take advantage of new framework stuff
Diffstat (limited to 'Modules/FindOpenGL.cmake')
-rw-r--r--Modules/FindOpenGL.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake
index 062e16d..4c18911 100644
--- a/Modules/FindOpenGL.cmake
+++ b/Modules/FindOpenGL.cmake
@@ -15,8 +15,9 @@
# People will have to change the cache values of OPENGL_glu_LIBRARY
# and OPENGL_gl_LIBRARY to use OpenGL with X11 on OSX
IF (APPLE)
- SET (OPENGL_gl_LIBRARY "-framework OpenGL" CACHE STRING "OpenGL lib for OSX")
- SET (OPENGL_glu_LIBRARY "-framework AGL" CACHE STRING "AGL 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_PATH(OPENGL_INCLUDE_DIR OpenGL/gl.h DOC "Include for OpenGL on OSX")
ENDIF (APPLE)
IF (WIN32)