libobs: Fix missing Linux libraries with certain flags
Make sure libobs links all libraries needed to satisfy symbols in the library. Fixes obsproject/obs-studio#3924
This commit is contained in:
parent
2de056e32c
commit
12b6e28f03
@ -20,6 +20,9 @@ if(UNIX)
|
||||
find_package(X11 REQUIRED)
|
||||
find_package(X11_XCB REQUIRED)
|
||||
find_package(XCB OPTIONAL_COMPONENTS XINPUT)
|
||||
find_package(XCB)
|
||||
find_library(M_LIBRARY NAMES m)
|
||||
find_library(DL_LIBRARY NAMES dl)
|
||||
if (XCB_XINPUT_FOUND)
|
||||
set(USE_XINPUT "1")
|
||||
else()
|
||||
@ -219,7 +222,10 @@ elseif(UNIX)
|
||||
${X11_XCB_DEFINITIONS})
|
||||
set(libobs_PLATFORM_DEPS
|
||||
${libobs_PLATFORM_DEPS}
|
||||
${DL_LIBRARY}
|
||||
${M_LIBRARY}
|
||||
${X11_X11_LIB}
|
||||
${XCB_LIBRARIES}
|
||||
${X11_XCB_LIBRARIES})
|
||||
|
||||
if(USE_XINPUT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user