summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-02-26 12:08:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-02-26 12:08:25 +0100
commit56b1fd8a47b809e207160d2f2505caee424831a3 (patch)
treef6a858a2406998d204775eb39935c3ff6142efb5 /tracker-aruco
parentbb773720e9cfd78bdba7190867fd221b767b90da (diff)
tracker/aruco: fix bad cmake condition
Diffstat (limited to 'tracker-aruco')
-rw-r--r--tracker-aruco/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-aruco/CMakeLists.txt b/tracker-aruco/CMakeLists.txt
index 92879196..c477ac1e 100644
--- a/tracker-aruco/CMakeLists.txt
+++ b/tracker-aruco/CMakeLists.txt
@@ -10,10 +10,10 @@ endfunction()
include(opentrack-opencv)
find_package(OpenCV QUIET)
-if(OpenCV_FOUND AND TARGET opencv_calib3d AND TARGET opencv_features2d)
+if(OpenCV_FOUND)
set(opencv-modules core calib3d imgproc features2d flann)
foreach(k ${opencv-modules})
- if(NOT TARGET "${k}")
+ if(NOT TARGET "opencv_${k}")
return()
endif()
endforeach()