From bf66a9595ce85f3447ada069deb21b08f15591d1 Mon Sep 17 00:00:00 2001 From: Mateo de Mayo Date: Sun, 30 Oct 2022 11:34:57 -0300 Subject: [PATCH] build: Fix undefined reference to u_sink_create_queue When XRT_FEATURE_SLAM is on, t_euroc_recorder.cpp is linked. This depends on u_sink_queue.c. --- src/xrt/auxiliary/tracking/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/xrt/auxiliary/tracking/CMakeLists.txt b/src/xrt/auxiliary/tracking/CMakeLists.txt index 0cb9d4a7f..06c94cb04 100644 --- a/src/xrt/auxiliary/tracking/CMakeLists.txt +++ b/src/xrt/auxiliary/tracking/CMakeLists.txt @@ -40,7 +40,11 @@ if(XRT_HAVE_OPENCV) t_tracker_psvr.cpp ) target_include_directories(aux_tracking SYSTEM PRIVATE ${OpenCV_INCLUDE_DIRS}) - target_link_libraries(aux_tracking PUBLIC ${OpenCV_LIBRARIES}) + target_link_libraries( + aux_tracking + PUBLIC ${OpenCV_LIBRARIES} + PRIVATE aux_util_sink + ) endif() if(XRT_FEATURE_SLAM)