From 8ce2f1644dc5a9524ac486e3c3198538ceb9b0f4 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 6 Mar 2015 17:56:39 +0100 Subject: [PATCH] Don't build AZ unless we have a decent version of Qt available. --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 59cfe4ea3..36fea4bf6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -200,8 +200,14 @@ if (NOT JUSTTESTS) add_subdirectory(libnatspec) add_subdirectory(libjsqrc) - add_subdirectory(alethzero) - add_subdirectory(third) + + find_package (Qt5WebEngine QUIET) + if ("${Qt5WebEngine_VERSION_STRING}" VERSION_GREATER "5.3.0") + set (ETH_HAVE_WEBENGINE TRUE) + add_subdirectory(alethzero) + add_subdirectory(third) + endif() + add_subdirectory(mix) endif()