forked from Public/monero-gui
Revert "cmake: drop unnecessary package"
This reverts commit 077ab3d58e.
This commit is contained in:
@@ -160,6 +160,12 @@ if(Qt5QmlModels_PKG_CONFIG_FOUND)
|
|||||||
list(APPEND QT5_LIBRARIES Qt5QmlModels)
|
list(APPEND QT5_LIBRARIES Qt5QmlModels)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# TODO: drop this once we switch to Qt 5.12+
|
||||||
|
find_package(Qt5XmlPatterns QUIET)
|
||||||
|
if(Qt5XmlPatterns_FOUND)
|
||||||
|
list(APPEND QT5_LIBRARIES Qt5XmlPatterns)
|
||||||
|
endif()
|
||||||
|
|
||||||
foreach(QT5_MODULE ${QT5_LIBRARIES})
|
foreach(QT5_MODULE ${QT5_LIBRARIES})
|
||||||
find_package(${QT5_MODULE} ${QT_MIN_VERSION} REQUIRED)
|
find_package(${QT5_MODULE} ${QT_MIN_VERSION} REQUIRED)
|
||||||
include_directories(${${QT5_MODULE}_INCLUDE_DIRS})
|
include_directories(${${QT5_MODULE}_INCLUDE_DIRS})
|
||||||
|
|||||||
Reference in New Issue
Block a user