From 7e3fb9f07808d8adbb17bad4eebc8d5731e2966b Mon Sep 17 00:00:00 2001 From: rti Date: Mon, 31 May 2010 22:35:49 +0200 Subject: [PATCH] Fixed: link X11 on Mac OS X if without WITH_COCOA --- code/nel/src/3d/driver/opengl/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/nel/src/3d/driver/opengl/CMakeLists.txt b/code/nel/src/3d/driver/opengl/CMakeLists.txt index 11a786e8b..bcbb36e48 100644 --- a/code/nel/src/3d/driver/opengl/CMakeLists.txt +++ b/code/nel/src/3d/driver/opengl/CMakeLists.txt @@ -37,7 +37,8 @@ ELSE(WIN32) # NOTE: I know, those hardcoded things are evil. But FindOpenGL on Mac # simply does not look for X11's OpenGL, just for the native one. INCLUDE_DIRECTORIES("/usr/X11/include") - TARGET_LINK_LIBRARIES(${NLDRV_OGL_LIB} "-L/usr/X11/lib" "-lGL") + TARGET_LINK_LIBRARIES(${NLDRV_OGL_LIB} + "-L/usr/X11/lib" "-lGL" ${X11_LIBRARIES}) ENDIF(WITH_COCOA) ELSE(APPLE) TARGET_LINK_LIBRARIES(${NLDRV_OGL_LIB} ${X11_LIBRARIES})