[cmake] Don't require Multimedia if YUZU_USE_QT_MULTIMEDIA is OFF

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-07-16 16:08:28 -04:00
parent 90aed07b12
commit 3b4adc6162
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6

View file

@ -469,9 +469,7 @@ if (ENABLE_QT)
find_package(Qt6 REQUIRED COMPONENTS Widgets Concurrent Core5Compat)
# QT6 Multimedia pulls in unneeded audio systems (ALSA, Pulseaudio) for FreeBSD
# ALSA is the default sound system on Linux, but FreeBSD uses OSS which works well enough
if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
if (YUZU_USE_QT_MULTIMEDIA)
find_package(Qt6 REQUIRED COMPONENTS Multimedia)
endif()