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.
This commit is contained in:
@@ -209,7 +209,7 @@ macro(yuzu_find_packages)
|
|||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
if (NOT YUZU_USE_BUNDLED_BOOST)
|
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()
|
endif()
|
||||||
if (Boost_FOUND)
|
if (Boost_FOUND)
|
||||||
set(Boost_LIBRARIES Boost::boost)
|
set(Boost_LIBRARIES Boost::boost)
|
||||||
@@ -222,7 +222,7 @@ if (Boost_FOUND)
|
|||||||
list(APPEND Boost_LIBRARIES Boost::context)
|
list(APPEND Boost_LIBRARIES Boost::context)
|
||||||
endif()
|
endif()
|
||||||
elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR YUZU_USE_BUNDLED_BOOST)
|
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)
|
set(YUZU_USE_BUNDLED_BOOST ON CACHE BOOL "Download bundled Boost" FORCE)
|
||||||
|
|
||||||
# Use yuzu Boost binaries
|
# Use yuzu Boost binaries
|
||||||
@@ -522,7 +522,7 @@ if (UNIX AND NOT APPLE)
|
|||||||
endif()
|
endif()
|
||||||
if (NOT YUZU_USE_BUNDLED_FFMPEG)
|
if (NOT YUZU_USE_BUNDLED_FFMPEG)
|
||||||
# Use system installed 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)
|
if (FFmpeg_FOUND)
|
||||||
# Overwrite aggregate defines from FFmpeg module to avoid over-linking libraries.
|
# Overwrite aggregate defines from FFmpeg module to avoid over-linking libraries.
|
||||||
|
|||||||
Reference in New Issue
Block a user