mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-02-21 17:20:37 +02:00
cmake: fix MacOS build (Qt installer)
This commit is contained in:
parent
c137a6ea36
commit
085abb798a
@ -241,9 +241,11 @@ if(APPLE)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
find_package(PkgConfig REQUIRED)
|
||||||
|
|
||||||
# TODO: drop this once we switch to Qt 5.14+
|
# TODO: drop this once we switch to Qt 5.14+
|
||||||
find_package(Qt5QmlModels QUIET)
|
pkg_check_modules(Qt5QmlModels_PKG_CONFIG QUIET Qt5QmlModels)
|
||||||
if(Qt5QmlModels_FOUND)
|
if(Qt5QmlModels_PKG_CONFIG_FOUND)
|
||||||
list(APPEND QT5_LIBRARIES Qt5QmlModels)
|
list(APPEND QT5_LIBRARIES Qt5QmlModels)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -255,9 +257,9 @@ endif()
|
|||||||
|
|
||||||
foreach(QT5_MODULE ${QT5_LIBRARIES})
|
foreach(QT5_MODULE ${QT5_LIBRARIES})
|
||||||
find_package(${QT5_MODULE} REQUIRED)
|
find_package(${QT5_MODULE} REQUIRED)
|
||||||
|
include_directories(${${QT5_MODULE}_INCLUDE_DIRS})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
find_package(PkgConfig REQUIRED)
|
|
||||||
pkg_check_modules(QT5_PKG_CONFIG REQUIRED ${QT5_LIBRARIES})
|
pkg_check_modules(QT5_PKG_CONFIG REQUIRED ${QT5_LIBRARIES})
|
||||||
|
|
||||||
if(QT5_PKG_CONFIG_FOUND)
|
if(QT5_PKG_CONFIG_FOUND)
|
||||||
|
Loading…
Reference in New Issue
Block a user