Merge pull request #755 from taka-no-me:add_checkinclude

This commit is contained in:
Andrey Kamaev 2013-04-04 17:56:52 +04:00 committed by OpenCV Buildbot
commit 6a0f605f51

View File

@ -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)