mirror of https://github.com/PCSX2/pcsx2.git
cmake: Fix GSdx EGL build libX11-xcb linkage issue
Prevents a XGetXCBConnection undefined symbol error.
This commit is contained in:
parent
6ef793545d
commit
61406a4349
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue