提交 bf3264b1 编写于 作者: A Andrey Kamaev

Add missed CMake include for check_include_file

Issue #2820
上级 1e9ed142
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册