From 5061d6c2751ec5561b0397ca4f97a7572a2561bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Mon, 7 Feb 2022 20:37:10 +0100 Subject: [PATCH] Futureproof the QT static path --- src/qt/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/CMakeLists.txt b/src/qt/CMakeLists.txt index 8aeb91a6b..9cedb83a2 100644 --- a/src/qt/CMakeLists.txt +++ b/src/qt/CMakeLists.txt @@ -16,7 +16,7 @@ endif() set(QT_STATIC ${STATIC_BUILD}) if(QT_STATIC AND MINGW) - set(CMAKE_PREFIX_PATH "$ENV{MSYSTEM_PREFIX}/qt5-static") + set(CMAKE_PREFIX_PATH "$ENV{MSYSTEM_PREFIX}/qt${QT_MAJOR}-static") endif() find_package(Threads REQUIRED)