robotology / ycm-cmake-modules

YCM (YCM CMake modules) is a collection of various useful CMake modules.
http://robotology.github.io/ycm-cmake-modules
Other
52 stars 23 forks source link

Cleanup FindOpenCV.cmake and deprecate `OpenCV_LIBRARIES` in favor of `OpenCV_LIBS` #434

Closed traversaro closed 1 year ago

traversaro commented 1 year ago

FindOpenCV.cmake contains a lot of legacy logic that is not useful for any OpenCV version >= 3, and that takes a lot of time if find_package(OpenCV) is called in a system without OpenCV. This PR removes the legacy logic, and deprecated the FindOpenCV.cmake module YCM, as downstream users should be able to just use the regular OpenCVConfig.cmake installed directly by CMake. As a consequence of this, downstream users should switch from OpenCV_LIBRARIES to OpenCV_LIBS.

Nicogene commented 1 year ago

@pattacini we should adapt which repository uses OpenCV_LIBRARIES:

pattacini commented 1 year ago

@pattacini we should adapt which repository uses OpenCV_LIBRARIES:

Yes, definitely, but it's not for this distro.