[Cmake] Re: CMake always links X11 OpenGL on MacOS X
Eric Wing
ewing2121 at yahoo.com
Wed, 11 Feb 2004 10:47:34 -0800 (PST)
Hi, out of curiosity, what is the AGL
library/Framework for? GLU seems to be included with
the OpenGL Framework. I've never needed to link to AGL
in any of my OpenGL programs.
> From: "William A. Hoffman" <billlist at nycap.rr.com>
> FindOpenGL.cmake from 1.8.3 should
> look like this:
>
> # On OSX default to using the framework version of
> opengl
> # 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")
> ENDIF (APPLE)
>
> It should prefer the Cocoa over X11.