Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

CMake: Silence PNG not found error

Yuri Kunde Schlesner361735e7fe13
diff --git a/CMakeLists.txt b/CMakeLists.txt
index af53bda711..1491df6e67 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,10 +33,12 @@ else()
endif()
add_definitions(-DSINGLETHREADED)
-find_package(PNG)
+find_package(PNG QUIET)
if (PNG_FOUND)
add_definitions(-DHAVE_PNG)
-endif ()
+else()
+ message(STATUS "libpng not found. Some debugging features have been disabled.")
+endif()
find_package(Boost)
if (Boost_FOUND)