mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Make code Qt 6 compatible / raises minimum Qt 5 version to 5.14
In addition to replacing Qt5 with Qt6 in CMakeLists.txt two small changes to the code are needed to make things build on Qt 6 (which in turn is needed for Apple M1/M2 support). The cost of this change is that when building on Qt 5, at least version 5.14 is needed. Certain older but still used Linux distributions such as Ubuntu 10.04 LTS still use 5.12, so revert this commit if you are building on those...
This commit is contained in:
parent
08599d082c
commit
c8a05b995f
3 changed files with 4 additions and 7 deletions
|
@ -100,7 +100,7 @@ set(SOURCES "main.cpp" "imagewriter.cpp" "networkaccessmanagerfactory.cpp"
|
|||
"devicewrapper.cpp" "devicewrapperblockcacheentry.cpp" "devicewrapperpartition.cpp" "devicewrapperfatpartition.cpp"
|
||||
"driveformatthread.cpp" "localfileextractthread.cpp" "powersaveblocker.cpp" "downloadstatstelemetry.cpp" "qml.qrc" "dependencies/sha256crypt/sha256crypt.c" "cli.cpp")
|
||||
|
||||
find_package(Qt5 COMPONENTS Core Quick LinguistTools Svg OPTIONAL_COMPONENTS Widgets)
|
||||
find_package(Qt5 5.14 COMPONENTS Core Quick LinguistTools Svg OPTIONAL_COMPONENTS Widgets)
|
||||
if (Qt5Widgets_FOUND)
|
||||
set(EXTRALIBS ${EXTRALIBS} Qt5::Widgets)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue