CMake: Silence PNG not found error

Hopefully this will make people stop thinking it's a hard dependency.
This commit is contained in:
Yuri Kunde Schlesner 2014-12-21 05:22:00 -02:00
parent ed8f32f03e
commit 361735e7fe
1 changed files with 4 additions and 2 deletions

View File

@ -33,9 +33,11 @@ else()
endif() endif()
add_definitions(-DSINGLETHREADED) add_definitions(-DSINGLETHREADED)
find_package(PNG) find_package(PNG QUIET)
if (PNG_FOUND) if (PNG_FOUND)
add_definitions(-DHAVE_PNG) add_definitions(-DHAVE_PNG)
else()
message(STATUS "libpng not found. Some debugging features have been disabled.")
endif() endif()
find_package(Boost) find_package(Boost)