From 919c4ebd8981bb1a24f497bcd7645c49fdd23432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 10 Jan 2019 19:09:20 +0100 Subject: [PATCH] modules: find the GLFW config quietly. Also remove the now-obsolete CMake < 3.0 handling. --- modules/FindGLFW.cmake | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/FindGLFW.cmake b/modules/FindGLFW.cmake index b5499f886..32e624b85 100644 --- a/modules/FindGLFW.cmake +++ b/modules/FindGLFW.cmake @@ -42,11 +42,9 @@ # # GLFW installs cmake package config files to shared/ folder which handles -# dependencies in case GLFW is built statically. We're making an INTERFACE -# target for it, which is supported only since CMake 3.0. -if(NOT CMAKE_VERSION VERSION_LESS 3.0.0) - find_package(glfw3 CONFIG) -endif() +# dependencies in case GLFW is built statically. Try to find first, quietly, so +# it doesn't print loud messages when it's not found, since that's okay. +find_package(glfw3 CONFIG QUIET) if(TARGET glfw) if(NOT TARGET GLFW::GLFW)