From 13ada2d705137483f7004374438135d2a918e578 Mon Sep 17 00:00:00 2001 From: Zephyron Date: Sun, 9 Feb 2025 18:57:35 +1000 Subject: [PATCH] cmake: Use Qt 6.7.3 for MSVC builds Forces Qt 6.7.3 for MSVC builds while keeping 6.8.2 for other platforms. This fixes Windows compilation issues with newer Qt versions. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c4e4d3c4..b5bf1a978 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -422,7 +422,11 @@ endif() if (ENABLE_QT) if (NOT USE_SYSTEM_QT) - download_qt(6.8.2) + if ((MSVC_VERSION GREATER_EQUAL 1920) AND ARCHITECTURE_x86_64) + download_qt(6.7.3) + else() + download_qt(6.8.2) + endif() endif() find_package(Qt6 REQUIRED COMPONENTS Widgets Multimedia Concurrent Network)