Futureproof the QT static path

This commit is contained in:
David Hrdlička
2022-02-07 20:37:10 +01:00
parent d879628553
commit 5061d6c275

View File

@@ -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)