summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2013-03-14 14:24:03 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-14 20:27:48 +0100
commita2a8ed79ead8dbfae91a136c2e65f62edfbc0029 (patch)
tree3814b717ed875c832a2748733493e806642e4715
parent8b76d788604ff4e89198813c542e6bb440b202fb (diff)
downloadqttools-a2a8ed79ead8dbfae91a136c2e65f62edfbc0029.tar.gz
Run the qttools cmake module tests only if QtWidgets is available.
Change-Id: I26847e3347cf24664ca52488ddf521c923e37912 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
-rw-r--r--tests/auto/cmake/cmake.pro6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/cmake/cmake.pro b/tests/auto/cmake/cmake.pro
index db06747ed..86aa9c3ca 100644
--- a/tests/auto/cmake/cmake.pro
+++ b/tests/auto/cmake/cmake.pro
@@ -2,6 +2,8 @@
# Cause make to do nothing.
TEMPLATE = subdirs
-qtHaveModule(widgets): CMAKE_QT_MODULES_UNDER_TEST = designer help uitools
+qtHaveModule(widgets) {
+ CMAKE_QT_MODULES_UNDER_TEST = designer help uitools
-CONFIG += ctest_testcase
+ CONFIG += ctest_testcase
+}