From 59146478fb6bec1d0c6630203621bd302d9c1edb Mon Sep 17 00:00:00 2001 From: arkpar Date: Tue, 11 Aug 2015 16:38:44 +0200 Subject: [PATCH] fixed build for older qt versions --- alethzero/CMakeLists.txt | 4 ++-- mix/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alethzero/CMakeLists.txt b/alethzero/CMakeLists.txt index 9bbb8f92d..1576a016f 100644 --- a/alethzero/CMakeLists.txt +++ b/alethzero/CMakeLists.txt @@ -63,8 +63,8 @@ target_link_libraries(${EXECUTABLE} Qt5::Core) target_link_libraries(${EXECUTABLE} Qt5::Widgets) target_link_libraries(${EXECUTABLE} Qt5::WebEngine) target_link_libraries(${EXECUTABLE} Qt5::WebEngineWidgets) -if (APPLE) - target_link_libraries(${EXECUTABLE} Qt5::WebEngineCore) +if (APPLE AND (NOT "${Qt5Core_VERSION_STRING}" VERSION_LESS "5.5")) + target_link_libraries(${EXECUTABLE} Qt5::WebEngineCore) target_link_libraries(${EXECUTABLE} Qt5::DBus) target_link_libraries(${EXECUTABLE} Qt5::PrintSupport) endif() diff --git a/mix/CMakeLists.txt b/mix/CMakeLists.txt index 44cd9c12a..91e3d8508 100644 --- a/mix/CMakeLists.txt +++ b/mix/CMakeLists.txt @@ -21,7 +21,7 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") AND NOT (CMAKE_CXX_COMPILER_VER endif () find_package (Qt5WebEngine) -if (APPLE) +if (APPLE AND (NOT "${Qt5Core_VERSION_STRING}" VERSION_LESS "5.5")) # TODO: remove indirect dependencies once macdeployqt is fixed find_package (Qt5WebEngineCore) find_package (Qt5DBus)