ERR: Shouldn't be adding xlibs to opengllibs on osx
This commit is contained in:
parent
afc74398d3
commit
a4d0758e22
@ -92,11 +92,14 @@ ELSE (WIN32)
|
|||||||
# On Unix OpenGL most certainly always requires X11.
|
# On Unix OpenGL most certainly always requires X11.
|
||||||
# Feel free to tighten up these conditions if you don't
|
# Feel free to tighten up these conditions if you don't
|
||||||
# think this is always true.
|
# think this is always true.
|
||||||
|
# It's not true on OSX.
|
||||||
|
|
||||||
IF (OPENGL_gl_LIBRARY)
|
IF (OPENGL_gl_LIBRARY)
|
||||||
INCLUDE( ${CMAKE_ROOT}/Modules/FindX11.cmake )
|
INCLUDE( ${CMAKE_ROOT}/Modules/FindX11.cmake )
|
||||||
IF (X11_FOUND)
|
IF (X11_FOUND)
|
||||||
SET (OPENGL_LIBRARIES ${X11_LIBRARIES})
|
IF (NOT APPLE)
|
||||||
|
SET (OPENGL_LIBRARIES ${X11_LIBRARIES})
|
||||||
|
ENDIF (NOT APPLE)
|
||||||
ENDIF (X11_FOUND)
|
ENDIF (X11_FOUND)
|
||||||
ENDIF (OPENGL_gl_LIBRARY)
|
ENDIF (OPENGL_gl_LIBRARY)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user