build: Add missing GLX dependency

Fixes loading by applications that do not themselves link GLX.
This commit is contained in:
Benjamin Saunders 2019-03-22 20:09:53 -07:00
parent a06a9eaac2
commit f016492a81
2 changed files with 2 additions and 1 deletions

View file

@ -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.

View 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)