2017-04-19 20:48:37 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
---
|
2020-10-01 20:29:31 +00:00
|
|
|
libobs/CMakeLists.txt | 13 ++++++++-----
|
|
|
|
1 file changed, 8 insertions(+), 5 deletions(-)
|
2017-04-19 20:48:37 +00:00
|
|
|
|
|
|
|
diff --git a/libobs/CMakeLists.txt b/libobs/CMakeLists.txt
|
2020-12-22 17:34:09 +00:00
|
|
|
index a367759..8dc3ce0 100644
|
2017-04-19 20:48:37 +00:00
|
|
|
--- a/libobs/CMakeLists.txt
|
|
|
|
+++ b/libobs/CMakeLists.txt
|
2020-12-22 17:34:09 +00:00
|
|
|
@@ -17,9 +17,8 @@ endif()
|
2018-12-16 16:18:48 +00:00
|
|
|
|
|
|
|
if(UNIX)
|
2017-04-19 20:48:37 +00:00
|
|
|
if (NOT APPLE)
|
2020-10-01 20:29:31 +00:00
|
|
|
+ find_package(XCB COMPONENTS XCB REQUIRED OPTIONAL_COMPONENTS XINPUT)
|
|
|
|
find_package(X11 REQUIRED)
|
2017-04-19 20:48:37 +00:00
|
|
|
- find_package(X11_XCB REQUIRED)
|
2018-12-16 16:18:48 +00:00
|
|
|
- find_package(XCB OPTIONAL_COMPONENTS XINPUT)
|
|
|
|
if (XCB_XINPUT_FOUND)
|
|
|
|
set(USE_XINPUT "1")
|
|
|
|
else()
|
2020-12-22 17:34:09 +00:00
|
|
|
@@ -225,14 +224,18 @@ elseif(UNIX)
|
2017-04-19 20:48:37 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
include_directories(
|
2020-10-01 20:29:31 +00:00
|
|
|
- ${X11_X11_INCLUDE_PATH}
|
2017-04-19 20:48:37 +00:00
|
|
|
+ ${XCB_INCLUDE_DIRS}
|
2020-10-01 20:29:31 +00:00
|
|
|
+ ${X11_X11_INCLUDE_DIRS}
|
|
|
|
${X11_XCB_INCLUDE_DIRS})
|
|
|
|
+
|
2017-04-19 20:48:37 +00:00
|
|
|
add_definitions(
|
|
|
|
+ ${XCB_DEFINITIONS}
|
|
|
|
${X11_XCB_DEFINITIONS})
|
|
|
|
set(libobs_PLATFORM_DEPS
|
|
|
|
${libobs_PLATFORM_DEPS}
|
2020-10-01 20:29:31 +00:00
|
|
|
- ${X11_X11_LIB}
|
2017-04-19 20:48:37 +00:00
|
|
|
- ${X11_XCB_LIBRARIES})
|
|
|
|
+ ${XCB_LIBRARIES}
|
|
|
|
+ ${X11_XCB_LIBRARIES}
|
|
|
|
+ ${X11_X11_LIB})
|
|
|
|
|
2018-12-16 16:18:48 +00:00
|
|
|
if(USE_XINPUT)
|
|
|
|
include_directories(
|