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.
FindOpenCV.cmake
contains a lot of legacy logic that is not useful for any OpenCV version >= 3, and that takes a lot of time iffind_package(OpenCV)
is called in a system without OpenCV. This PR removes the legacy logic, and deprecated theFindOpenCV.cmake
module YCM, as downstream users should be able to just use the regularOpenCVConfig.cmake
installed directly by CMake. As a consequence of this, downstream users should switch fromOpenCV_LIBRARIES
toOpenCV_LIBS
.