Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdolfo E. García <adolfo.garcia.cr@gmail.com>2017-10-16 02:28:26 +0300
committerAdolfo E. García <adolfo.garcia.cr@gmail.com>2017-10-21 19:12:28 +0300
commitfdc7471a7b42731c849028ad17dbbee323007545 (patch)
tree884008781216374605936bdf3e50569d32019d35 /CMakeLists.txt
parent7198f20d6931bd39a17f41bd01d0c9d93ba56f10 (diff)
Make QtMacExtras optional
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7b465d227..5fa90173a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -223,7 +223,10 @@ endif(WITH_TESTS)
if(UNIX AND NOT APPLE)
find_package(Qt5 COMPONENTS Core Network Concurrent Widgets Test LinguistTools DBus REQUIRED)
elseif(APPLE)
- find_package(Qt5 COMPONENTS Core Network Concurrent Widgets Test LinguistTools MacExtras REQUIRED
+ find_package(Qt5 COMPONENTS Core Network Concurrent Widgets Test LinguistTools REQUIRED
+ HINTS /usr/local/Cellar/qt/*/lib/cmake ENV PATH
+ )
+ find_package(Qt5 COMPONENTS MacExtras
HINTS /usr/local/Cellar/qt/*/lib/cmake ENV PATH
)
else()
@@ -242,7 +245,7 @@ if(APPLE)
set(CMAKE_MACOSX_RPATH TRUE)
find_program(MACDEPLOYQT_EXE macdeployqt HINTS /usr/local/opt/qt5/bin ENV PATH)
if(NOT MACDEPLOYQT_EXE)
- message(FATAL_ERROR "macdeployqt is required to use build in macOS")
+ message(FATAL_ERROR "macdeployqt is required to build in macOS")
else()
message(STATUS "Using macdeployqt: ${MACDEPLOYQT_EXE}")
endif()