"tutorials/models/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "611393021a85e10ccd433a264a3487726b7b1841"
Commit eded3773 authored by Davis King's avatar Davis King
Browse files

Never use anaconda's version of libpng because it's broken.

parent 6b581d91
......@@ -405,8 +405,9 @@ if (NOT TARGET dlib)
# try to find libpng
find_package(PNG QUIET)
# Make sure there isn't something wrong with the version of LIBPNG
# installed on this system.
if (PNG_FOUND)
# installed on this system. Also never link to anything from anaconda
# since it's probably broken.
if (PNG_FOUND AND NOT ("${PNG_INCLUDE_DIR}" MATCHES "(.*)(Ana|ana|mini)conda(.*)"))
set(CMAKE_REQUIRED_LIBRARIES ${PNG_LIBRARIES})
CHECK_FUNCTION_EXISTS(png_create_read_struct LIBPNG_IS_GOOD)
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment