diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2020-05-18 12:26:49 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2020-05-18 12:26:49 -0500 |
| commit | e0f6577afdb4751340e4e2f087091cc548195976 (patch) | |
| tree | 445f7c6624844af56fe4ccaa4ac72740db8be134 | |
| parent | c20a0ef9284b7b82fc144652d11a483eec046be6 (diff) | |
| parent | efc9ad45e437debc6ea4ecf940c9373127bdec1f (diff) | |
| download | monzero-gui-e0f6577afdb4751340e4e2f087091cc548195976.tar.gz monzero-gui-e0f6577afdb4751340e4e2f087091cc548195976.tar.xz monzero-gui-e0f6577afdb4751340e4e2f087091cc548195976.zip | |
Merge pull request #2910
efc9ad4 cmake: fix Qt 5.14+ build, link Qt5QmlModels if available (xiphon)
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a6e30f13..b273bf2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() |
