Skip to content
Snippets Groups Projects
Commit 361735e7 authored by Yuri Kunde Schlesner's avatar Yuri Kunde Schlesner
Browse files

CMake: Silence PNG not found error

Hopefully this will make people stop thinking it's a hard dependency.
parent ed8f32f0
No related branches found
No related tags found
No related merge requests found
...@@ -33,10 +33,12 @@ else() ...@@ -33,10 +33,12 @@ 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)
endif () else()
message(STATUS "libpng not found. Some debugging features have been disabled.")
endif()
find_package(Boost) find_package(Boost)
if (Boost_FOUND) if (Boost_FOUND)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment