ERR: Shouldn't be adding xlibs to opengllibs on osx

This commit is contained in:
Yves Starreveld 2004-03-27 13:20:55 -05:00
parent afc74398d3
commit a4d0758e22
1 changed files with 4 additions and 1 deletions

View File

@ -92,11 +92,14 @@ ELSE (WIN32)
# On Unix OpenGL most certainly always requires X11.
# Feel free to tighten up these conditions if you don't
# think this is always true.
# It's not true on OSX.
IF (OPENGL_gl_LIBRARY)
INCLUDE( ${CMAKE_ROOT}/Modules/FindX11.cmake )
IF (X11_FOUND)
SET (OPENGL_LIBRARIES ${X11_LIBRARIES})
IF (NOT APPLE)
SET (OPENGL_LIBRARIES ${X11_LIBRARIES})
ENDIF (NOT APPLE)
ENDIF (X11_FOUND)
ENDIF (OPENGL_gl_LIBRARY)