Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

[cmake] Promote Qt FreeBSD (fix building with Qt 6.10.1) (#3335)

DraVee5406a153e188
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ce234cd2a..fe73f558c9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -601,7 +601,7 @@ if (ENABLE_QT)
find_package(Qt6 REQUIRED COMPONENTS Multimedia)
endif()
- if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ if (PLATFORM_LINUX OR PLATFORM_FREEBSD)
# yes Qt, we get it
set(QT_NO_PRIVATE_MODULE_WARNING ON)
find_package(Qt6 REQUIRED COMPONENTS DBus OPTIONAL_COMPONENTS GuiPrivate)