From f10951b5ace5c497ac2757221f0a4466e7b5e1b4 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Mon, 8 Nov 2021 13:06:20 +0000 Subject: [PATCH] t/openxr: Only link against qwerty driver if built --- src/xrt/targets/openxr/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/xrt/targets/openxr/CMakeLists.txt b/src/xrt/targets/openxr/CMakeLists.txt index bdc1ed95d..2044d9231 100644 --- a/src/xrt/targets/openxr/CMakeLists.txt +++ b/src/xrt/targets/openxr/CMakeLists.txt @@ -42,12 +42,17 @@ if(XRT_HAVE_SDL2) st_gui imgui_impl_sdl ${SDL2_LIBRARIES} - drv_qwerty - drv_qwerty_includes ) target_include_directories(${RUNTIME_TARGET} PRIVATE ${SDL2_INCLUDE_DIRS} ) + + if(XRT_BUILD_DRIVER_QWERTY) + target_link_libraries(${RUNTIME_TARGET} PRIVATE + drv_qwerty + drv_qwerty_includes + ) + endif() endif() if(XRT_FEATURE_SERVICE)