projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e9ed14
)
Add missed CMake include for check_include_file
author
Andrey Kamaev
<andrey.kamaev@itseez.com>
Thu, 4 Apr 2013 07:04:51 +0000
(11:04 +0400)
committer
Andrey Kamaev
<andrey.kamaev@itseez.com>
Thu, 4 Apr 2013 07:04:51 +0000
(11:04 +0400)
Issue #2820
cmake/OpenCVFindLibsGrfmt.cmake
patch
|
blob
|
history
diff --git
a/cmake/OpenCVFindLibsGrfmt.cmake
b/cmake/OpenCVFindLibsGrfmt.cmake
index
08af604
..
33e428b
100644
(file)
--- 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)