aruco_pose, clover: Reduce the amount of OpenCV libs requested

This commit is contained in:
Alexey Rogachevskiy
2020-11-05 23:20:59 +03:00
parent f36401274d
commit 8a6bdccc9c
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ find_package(catkin REQUIRED COMPONENTS
# Workaround for OpenCV 3/4 support
set(_opencv_version 4)
find_package(OpenCV ${_opencv_version} QUIET)
find_package(OpenCV ${_opencv_version} QUIET COMPONENTS core imgproc calib3d)
if (NOT OpenCV_FOUND)
message(STATUS "Did not find OpenCV 4, searching for OpenCV 3")
set(_opencv_version 3)

View File

@@ -32,7 +32,7 @@ find_package(GeographicLib REQUIRED)
# Workaround for OpenCV 3/4 support
set(_opencv_version 4)
find_package(OpenCV ${_opencv_version} QUIET)
find_package(OpenCV ${_opencv_version} QUIET COMPONENTS calib3d imgproc)
if (NOT OpenCV_FOUND)
message(STATUS "Did not find OpenCV 4, searching for OpenCV 3")
set(_opencv_version 3)