cmake: Fix GSdx EGL build libX11-xcb linkage issue

Prevents a XGetXCBConnection undefined symbol error.
This commit is contained in:
Jonathan Li 2018-05-25 00:12:07 +01:00
parent 6ef793545d
commit 61406a4349
3 changed files with 3 additions and 2 deletions

View File

@ -94,6 +94,7 @@ if(Linux)
endif()
if(EGL_API)
check_lib(EGL EGL EGL/egl.h)
check_lib(X11_XCB X11-xcb X11/Xlib-xcb.h)
endif()
if(OPENCL_API)
check_lib(OPENCL OpenCL CL/cl.hpp)

View File

@ -141,7 +141,7 @@ endif()
# -X11
# -zlib
#---------------------------------------
if(OPENGL_FOUND AND X11_FOUND AND GTKn_FOUND AND ZLIB_FOUND AND PNG_FOUND AND FREETYPE_FOUND AND LIBLZMA_FOUND AND (EGL_FOUND OR NOT EGL_API))
if(OPENGL_FOUND AND X11_FOUND AND GTKn_FOUND AND ZLIB_FOUND AND PNG_FOUND AND FREETYPE_FOUND AND LIBLZMA_FOUND AND ((EGL_FOUND AND X11_XCB_FOUND) OR NOT EGL_API))
set(GSdx TRUE)
elseif(NOT EXISTS "${CMAKE_SOURCE_DIR}/plugins/GSdx")
set(GSdx FALSE)

View File

@ -272,7 +272,7 @@ set(GSdxFinalLibs
)
if(EGL_API AND EGL_FOUND)
set(GSdxFinalLibs ${GSdxFinalLibs} ${EGL_LIBRARIES})
set(GSdxFinalLibs ${GSdxFinalLibs} ${EGL_LIBRARIES} ${X11_XCB_LIBRARIES})
endif()
if(USE_VTUNE)