mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-28 17:38:27 +00:00
build: Add missing GLX dependency
Fixes loading by applications that do not themselves link GLX.
This commit is contained in:
parent
a06a9eaac2
commit
f016492a81
|
@ -22,7 +22,7 @@ include(SPIR-V)
|
|||
|
||||
find_package(Eigen3 REQUIRED)
|
||||
find_package(Vulkan REQUIRED)
|
||||
find_package(OpenGL)
|
||||
find_package(OpenGL REQUIRED COMPONENTS GLX)
|
||||
find_package(HIDAPI)
|
||||
|
||||
# Push into a FindOpenHMD.cmake file.
|
||||
|
|
|
@ -76,6 +76,7 @@ target_link_libraries(${RUNTIME_TARGET}
|
|||
${OPENHMD_LIBRARIES}
|
||||
${Vulkan_LIBRARIES}
|
||||
${XCB_LIBRARIES}
|
||||
OpenGL::GLX
|
||||
)
|
||||
|
||||
target_compile_definitions(${RUNTIME_TARGET} PRIVATE XRT_HAVE_OHMD)
|
||||
|
|
Loading…
Reference in a new issue