cleaned up cmake file a little

This commit is contained in:
Davis King 2014-12-28 07:31:28 -05:00
parent a093553e1d
commit 44e3d6b817
1 changed files with 1 additions and 3 deletions

View File

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