From ae611eef485f0c40a3d6b35d657368f6b3908a8a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 5 Feb 2022 19:27:28 +0100 Subject: tracker/aruco: don't build when opencv_calib3d is missing --- tracker-aruco/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracker-aruco') diff --git a/tracker-aruco/CMakeLists.txt b/tracker-aruco/CMakeLists.txt index 96605f1b..ff743d42 100644 --- a/tracker-aruco/CMakeLists.txt +++ b/tracker-aruco/CMakeLists.txt @@ -10,7 +10,7 @@ endfunction() include(opentrack-opencv) find_package(OpenCV QUIET) -if(OpenCV_FOUND) +if(OpenCV_FOUND AND TARGET opencv_calib3d) foreach(k core calib3d imgproc features2d flann) otr_install_lib("opencv_${k}" "${opentrack-libexec}") endforeach() -- cgit v1.2.3