From 57dd66268f98d9298332a20b96a1dd227942f382 Mon Sep 17 00:00:00 2001 From: andy5995 Date: Tue, 25 Sep 2018 13:45:00 -0500 Subject: [PATCH] cmake:add -x11 flag Found this in a patch http://slackbuilds.org/repository/14.2/games/megaglest/?search=megaglest --- source/shared_lib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared_lib/CMakeLists.txt b/source/shared_lib/CMakeLists.txt index 8734efb0e..83df8dc29 100644 --- a/source/shared_lib/CMakeLists.txt +++ b/source/shared_lib/CMakeLists.txt @@ -111,7 +111,7 @@ IF(BUILD_MODEL_VIEWER OR BUILD_MAP_EDITOR OR BUILD_ZETAGLEST) FIND_PACKAGE(OpenGL REQUIRED) INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR}) IF(UNIX) - SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${OPENGL_LIBRARY}) + SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${OPENGL_LIBRARY} -lX11) ENDIF() FIND_PACKAGE(X11 REQUIRED)