diff options
-rw-r--r-- | tracker-aruco/CMakeLists.txt | 4 |
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() |