libobs: Fix XGetXCBConnection link error on linux
A linker error for XGetXCBConnection started occurring after the frontend API was added, the fix is simply to make sure libobs is properly linking to X11_XCB.
This commit is contained in:
@@ -13,6 +13,7 @@ endif()
|
||||
|
||||
if(UNIX)
|
||||
find_package(DBus QUIET)
|
||||
find_package(X11_XCB REQUIRED)
|
||||
else()
|
||||
set(HAVE_DBUS "0")
|
||||
endif()
|
||||
@@ -125,6 +126,14 @@ elseif(UNIX)
|
||||
${DBUS_LIBRARIES})
|
||||
endif()
|
||||
|
||||
include_directories(
|
||||
${X11_XCB_INCLUDE_DIRS})
|
||||
add_definitions(
|
||||
${X11_XCB_DEFINITIONS})
|
||||
set(libobs_PLATFORM_DEPS
|
||||
${libobs_PLATFORM_DEPS}
|
||||
${X11_XCB_LIBRARIES})
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||
# use the sysinfo compatibility library on bsd
|
||||
find_package(Libsysinfo REQUIRED)
|
||||
|
Reference in New Issue
Block a user