yolobs-studio/debian/patches/0005-Link-with-xcb-and-X-libraries-to-fix-underlinking.patch
Sebastian Ramacher ee8987800e Refresh patches
2020-12-22 18:34:09 +01:00

45 lines
1.1 KiB
Diff

From: Sebastian Ramacher <sramacher@debian.org>
Date: Wed, 19 Apr 2017 23:02:17 +0200
Subject: Link with xcb and X libraries to fix underlinking
---
libobs/CMakeLists.txt | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/libobs/CMakeLists.txt b/libobs/CMakeLists.txt
index a367759..8dc3ce0 100644
--- a/libobs/CMakeLists.txt
+++ b/libobs/CMakeLists.txt
@@ -17,9 +17,8 @@ endif()
if(UNIX)
if (NOT APPLE)
+ find_package(XCB COMPONENTS XCB REQUIRED OPTIONAL_COMPONENTS XINPUT)
find_package(X11 REQUIRED)
- find_package(X11_XCB REQUIRED)
- find_package(XCB OPTIONAL_COMPONENTS XINPUT)
if (XCB_XINPUT_FOUND)
set(USE_XINPUT "1")
else()
@@ -225,14 +224,18 @@ elseif(UNIX)
endif()
include_directories(
- ${X11_X11_INCLUDE_PATH}
+ ${XCB_INCLUDE_DIRS}
+ ${X11_X11_INCLUDE_DIRS}
${X11_XCB_INCLUDE_DIRS})
+
add_definitions(
+ ${XCB_DEFINITIONS}
${X11_XCB_DEFINITIONS})
set(libobs_PLATFORM_DEPS
${libobs_PLATFORM_DEPS}
- ${X11_X11_LIB}
- ${X11_XCB_LIBRARIES})
+ ${XCB_LIBRARIES}
+ ${X11_XCB_LIBRARIES}
+ ${X11_X11_LIB})
if(USE_XINPUT)
include_directories(