cmake:add -x11 flag

Found this in a patch
http://slackbuilds.org/repository/14.2/games/megaglest/?search=megaglest
This commit is contained in:
andy5995
2018-09-25 13:45:00 -05:00
parent be8a45bca0
commit 57dd66268f

View File

@@ -111,7 +111,7 @@ IF(BUILD_MODEL_VIEWER OR BUILD_MAP_EDITOR OR BUILD_ZETAGLEST)
FIND_PACKAGE(OpenGL REQUIRED) FIND_PACKAGE(OpenGL REQUIRED)
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
IF(UNIX) IF(UNIX)
SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${OPENGL_LIBRARY}) SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${OPENGL_LIBRARY} -lX11)
ENDIF() ENDIF()
FIND_PACKAGE(X11 REQUIRED) FIND_PACKAGE(X11 REQUIRED)