]> git.lizzy.rs Git - nothing.git/commitdiff
fix noisy warnings on cmake
authorzhiayang <500236+zhiayang@users.noreply.github.com>
Sun, 17 Nov 2019 16:23:32 +0000 (00:23 +0800)
committerGitHub <noreply@github.com>
Sun, 17 Nov 2019 16:23:32 +0000 (00:23 +0800)
use QUIET option so CMake doesn't complain if we don't find SDL2
through the system means.

CMakeLists.txt

index 16a6bc2236cd619d507b617ccb1e53b2fc565549..55cfb0bce6b65ee5015e340ad35a73ab70acff0d 100644 (file)
@@ -13,7 +13,7 @@ if(WIN32)
   # then try to find SDL2 using normal means (eg. the user may have installed SDL2 using pacman on msys2)
   # note we don't use REQUIRED here, because it can fail -- in which case we fall back to looking for the 
   # library "directly" using local files.
-  find_package(SDL2)
+  find_package(SDL2 QUIET)
   if(NOT SDL2_FOUND)
     if(MINGW)
       # Support both 32 and 64 bit builds