From: vsr Date: Tue, 16 Mar 2021 11:24:26 +0000 (+0300) Subject: OpenCV 4 compatibility: even better check X-Git-Tag: V9_7_0a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e5ec2cd2929753617977ca6c10ac7e423406f839;p=tools%2Fconfiguration.git OpenCV 4 compatibility: even better check --- 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)