mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
cmake: fix Qt 5.14+ build, link Qt5QmlModels if available
This commit is contained in:
parent
c20a0ef928
commit
efc9ad45e4
1 changed files with 6 additions and 0 deletions
|
@ -232,6 +232,12 @@ set(QT5_LIBRARIES
|
|||
Qt5Svg
|
||||
)
|
||||
|
||||
# TODO: drop this once we switch to Qt 5.14+
|
||||
find_package(Qt5QmlModels QUIET)
|
||||
if(Qt5QmlModels_FOUND)
|
||||
list(APPEND QT5_LIBRARIES Qt5QmlModels)
|
||||
endif()
|
||||
|
||||
foreach(QT5_MODULE ${QT5_LIBRARIES})
|
||||
find_package(${QT5_MODULE} REQUIRED)
|
||||
endforeach()
|
||||
|
|
Loading…
Reference in a new issue