diff options
author | Yves Starreveld <ystarrev@uwo.ca> | 2004-03-27 18:20:55 (GMT) |
---|---|---|
committer | Yves Starreveld <ystarrev@uwo.ca> | 2004-03-27 18:20:55 (GMT) |
commit | a4d0758e22c3d71c1011a993d2173cee2b4dd874 (patch) | |
tree | 56030d3ec378fed8b9abc6b2fc4f4144aca3491d /Modules | |
parent | afc74398d3534a5317f608e1c899f39a2a7feb7a (diff) | |
download | CMake-a4d0758e22c3d71c1011a993d2173cee2b4dd874.zip CMake-a4d0758e22c3d71c1011a993d2173cee2b4dd874.tar.gz CMake-a4d0758e22c3d71c1011a993d2173cee2b4dd874.tar.bz2 |
ERR: Shouldn't be adding xlibs to opengllibs on osx
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOpenGL.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake index 20c3aec..3543b19 100644 --- a/Modules/FindOpenGL.cmake +++ b/Modules/FindOpenGL.cmake @@ -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) |