From a93a81be7d9b3c4902451475d7c06201292f82ec Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Tue, 21 Jun 2011 14:04:01 +0200 Subject: Don't attempt to build benchmarks if release-mode Qt is not available All of the benchmarks explicitly turn on release mode. This fails on Mac and Windows if Qt is configured as debug-only. It is also possibly misleading on Linux, as compiling the benchmark in release mode does not imply that Qt is compiled in release mode. The results are generally not useful if release mode Qt is not available, so disable them by default in this case. Change-Id: Ifa2bb6ab6412dd360ff9dfb890ace2f51e0eef86 Reviewed-on: http://codereview.qt.nokia.com/549 Reviewed-by: Qt Sanity Bot Reviewed-by: Jo Asplin --- tests/tests.pro | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/tests.pro') diff --git a/tests/tests.pro b/tests/tests.pro index 75ca12094f..7a4af15fe2 100644 --- a/tests/tests.pro +++ b/tests/tests.pro @@ -1,3 +1,5 @@ TEMPLATE = subdirs -SUBDIRS = auto \ - benchmarks +SUBDIRS = auto + +# benchmarks in debug mode is rarely sensible +contains(QT_CONFIG,release):SUBDIRS += benchmarks -- cgit v1.2.3