From f29a3d936fdad6c4554a55c6ad62b9181b9d76ad Mon Sep 17 00:00:00 2001 From: dhewg Date: Sat, 31 Dec 2011 16:48:31 +0100 Subject: [PATCH] Don't link against X11 libraries Not required anymore. All backends use SDL based implementations now. --- CMakeLists.txt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bf62f84..dd9bed8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,17 +96,6 @@ include_directories(${OPENGL_INCLUDE_DIR}) find_package(SDL REQUIRED) include_directories(${SDL_INCLUDE_DIR}) -if (UNIX AND NOT APPLE) - find_package(X11 REQUIRED) - include_directories(${X11_INCLUDE_DIR}) - - if (os MATCHES ".*bsd" OR os STREQUAL "dragonfly") - set(Xxf86vm /usr/local/lib/libXxf86vm.so) - else() - set(Xxf86vm Xxf86vm) - endif() -endif() - if (CURL) find_package(CURL REQUIRED) add_definitions(-DID_ENABLE_CURL=1) @@ -693,7 +682,6 @@ if (CORE) set_target_properties(doom3.${cpu} PROPERTIES LINK_FLAGS "${ldflags}") target_link_libraries(doom3.${cpu} idlib${cpu} - ${X11_X11_LIB} ${X11_Xext_LIB} ${Xxf86vm} ${OPENGL_gl_LIBRARY} ${OPENAL_LIBRARY} ${OGG_LIBRARIES}