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
This commit is contained in:
Joe Ferris 2013-11-09 16:18:29 -05:00
parent 525a8bb130
commit f35e2df0df
1 changed files with 5 additions and 0 deletions

View File

@ -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