Commit f016492a authored by Benjamin Saunders's avatar Benjamin Saunders
Browse files

build: Add missing GLX dependency

Fixes loading by applications that do not themselves link GLX.
parent a06a9eaa
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment