Commit 44e3d6b8 authored by Davis King's avatar Davis King

cleaned up cmake file a little

parent a093553e
......@@ -216,9 +216,7 @@ if (NOT TARGET dlib)
if (DLIB_LINK_WITH_LIBPNG)
# try to find libpng
set(ZLIB_FIND_QUIETLY ON)
set(PNG_FIND_QUIETLY ON)
include(FindPNG)
find_package(PNG QUIET)
if (PNG_FOUND)
include_directories(${PNG_INCLUDE_DIR})
set (dlib_needed_libraries ${dlib_needed_libraries} ${PNG_LIBRARY})
......
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