FindOpenGL: Don't add AGL to OPENGL_LIBRARIES on OS X.

CMake had been setting OPENGL_glu_LIBRARY to AGL.framework, even
though AGL is not GLU.  AGL is simply the GL component for the
deprecated Carbon framework.  GLU is provided by OpenGL.framework.

A side effect of the old behavior was that if AGL was not found
(it is absent from OS X SDK 10.10 or later), then OPENGL_GLU_FOUND
would be incorrectly set to "NO".
This commit is contained in:
David Gobbi 2015-12-12 09:32:42 -07:00 committed by Brad King
parent a680211ca7
commit 08580be2ad
1 changed files with 8 additions and 4 deletions