From 0e9d5b9b5cb6454c750d1a72c35e07ee72093ccc Mon Sep 17 00:00:00 2001 From: voidanix <51296985+voidanix@users.noreply.github.com> Date: Wed, 16 Feb 2022 12:48:06 +0100 Subject: [PATCH] cmake: remove QUIET from ffmpeg/boost detection This allows for specific error messages from cmake itself about version requirements or missing components/headers. Update the boost detection message as well and turn it into a warning. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bf55d6646..277f03a407 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -209,7 +209,7 @@ macro(yuzu_find_packages) endmacro() if (NOT YUZU_USE_BUNDLED_BOOST) - find_package(Boost 1.73.0 CONFIG COMPONENTS context headers QUIET) + find_package(Boost 1.73.0 COMPONENTS context headers) endif() if (Boost_FOUND) set(Boost_LIBRARIES Boost::boost) @@ -222,7 +222,7 @@ if (Boost_FOUND) list(APPEND Boost_LIBRARIES Boost::context) endif() elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR YUZU_USE_BUNDLED_BOOST) - message(STATUS "Boost 1.73.0 or newer not found, falling back to externals") + message(WARNING "Boost not found or too old, falling back to externals") set(YUZU_USE_BUNDLED_BOOST ON CACHE BOOL "Download bundled Boost" FORCE) # Use yuzu Boost binaries @@ -522,7 +522,7 @@ if (UNIX AND NOT APPLE) endif() if (NOT YUZU_USE_BUNDLED_FFMPEG) # Use system installed FFmpeg - find_package(FFmpeg 4.3 QUIET COMPONENTS ${FFmpeg_COMPONENTS}) + find_package(FFmpeg 4.3 COMPONENTS ${FFmpeg_COMPONENTS}) if (FFmpeg_FOUND) # Overwrite aggregate defines from FFmpeg module to avoid over-linking libraries.