Merge pull request #2910

efc9ad4 cmake: fix Qt 5.14+ build, link Qt5QmlModels if available (xiphon)
This commit is contained in:
luigi1111 2020-05-18 12:26:49 -05:00
commit e0f6577afd
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

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