From: Andrey Kamaev Date: Thu, 4 Apr 2013 07:04:51 +0000 (+0400) Subject: Add missed CMake include for check_include_file X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1314^2~1368^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf3264b1971334d6c02e89ec406302a6e3ec6900;p=platform%2Fupstream%2Fopencv.git Add missed CMake include for check_include_file Issue #2820 --- diff --git a/cmake/OpenCVFindLibsGrfmt.cmake b/cmake/OpenCVFindLibsGrfmt.cmake index 08af604..33e428b 100644 --- a/cmake/OpenCVFindLibsGrfmt.cmake +++ b/cmake/OpenCVFindLibsGrfmt.cmake @@ -116,6 +116,7 @@ if(WITH_PNG AND NOT IOS) else() include(FindPNG) if(PNG_FOUND) + include(CheckIncludeFile) check_include_file("${PNG_PNG_INCLUDE_DIR}/png.h" HAVE_PNG_H) check_include_file("${PNG_PNG_INCLUDE_DIR}/libpng/png.h" HAVE_LIBPNG_PNG_H) if(HAVE_PNG_H)