From f35e2df0df3b2e253d78ab96afa670662f862037 Mon Sep 17 00:00:00 2001 From: Joe Ferris Date: Sat, 9 Nov 2013 16:18:29 -0500 Subject: [PATCH] Fail immediately when trying to compile with less than Qt 4.8 * We use features not present in Qt 4.7 * This fails earlier with a clearer message --- src/webkit_server.pro | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/webkit_server.pro b/src/webkit_server.pro index d2c6385..f47e74c 100644 --- a/src/webkit_server.pro +++ b/src/webkit_server.pro @@ -137,6 +137,11 @@ greaterThan(QT_MAJOR_VERSION, 4) { } else { QT += webkit } +lessThan(QT_MAJOR_VERSION, 5) { + lessThan(QT_MINOR_VERSION, 8) { + error(At least Qt 4.8.0 is required to run capybara-webkit.) + } +} CONFIG += console precompile_header CONFIG -= app_bundle PRECOMPILED_HEADER = stable.h