From e5ec2cd2929753617977ca6c10ac7e423406f839 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 16 Mar 2021 14:24:26 +0300 Subject: [PATCH] OpenCV 4 compatibility: even better check --- cmake/FindOpenCV.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindOpenCV.cmake b/cmake/FindOpenCV.cmake index 7be670b..b111fb6 100644 --- a/cmake/FindOpenCV.cmake +++ b/cmake/FindOpenCV.cmake @@ -29,7 +29,7 @@ IF(NOT OpenCV_FIND_QUIETLY) MESSAGE(STATUS "Check for OpenCV ...") ENDIF() -FIND_PATH(OpenCV_INCLUDE_DIRS opencv2/core.hpp) +FIND_PATH(OpenCV_INCLUDE_DIRS opencv2/opencv.hpp) SET(OpenCV_LIB_COMPONENTS videostab;video;ts;superres;stitching;photo;ocl;objdetect;ml;legacy;imgproc;highgui;gpu;flann;features2d;core;objdetect;imgcodecs;shape) -- 2.39.2