diff options
| author | 2014-12-21 05:22:00 -0200 | |
|---|---|---|
| committer | 2014-12-21 21:26:52 -0200 | |
| commit | 361735e7fe1369d88752f1366f56c8a4ce8c7431 (patch) | |
| tree | 96b27af79fd2f8442068e6de00da830cae769b7a | |
| parent | CMake: Use improved optimization flags on MSVC (diff) | |
| download | yuzu-361735e7fe1369d88752f1366f56c8a4ce8c7431.tar.gz yuzu-361735e7fe1369d88752f1366f56c8a4ce8c7431.tar.xz yuzu-361735e7fe1369d88752f1366f56c8a4ce8c7431.zip | |
CMake: Silence PNG not found error
Hopefully this will make people stop thinking it's a hard dependency.
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index af53bda71..1491df6e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -33,10 +33,12 @@ else() | |||
| 33 | endif() | 33 | endif() |
| 34 | add_definitions(-DSINGLETHREADED) | 34 | add_definitions(-DSINGLETHREADED) |
| 35 | 35 | ||
| 36 | find_package(PNG) | 36 | find_package(PNG QUIET) |
| 37 | if (PNG_FOUND) | 37 | if (PNG_FOUND) |
| 38 | add_definitions(-DHAVE_PNG) | 38 | add_definitions(-DHAVE_PNG) |
| 39 | endif () | 39 | else() |
| 40 | message(STATUS "libpng not found. Some debugging features have been disabled.") | ||
| 41 | endif() | ||
| 40 | 42 | ||
| 41 | find_package(Boost) | 43 | find_package(Boost) |
| 42 | if (Boost_FOUND) | 44 | if (Boost_FOUND) |