From 4deaef6979b6904163b9fe2fe1ff34c0753cc947 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 23 Apr 2012 19:24:13 +0200 Subject: Run DBus tests only if QtDBus is found. It's not enough to check for UNIX because Qt may have been configured without dbus, or we could be running on APPLE (on which DBus is not commonly installed). Change-Id: Ic57200dad42c0c12b292d1066f799c827294fe9a Reviewed-by: Olivier Goffart --- tests/auto/cmake/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/auto') diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt index fdcf2b76f8..5d059500b0 100644 --- a/tests/auto/cmake/CMakeLists.txt +++ b/tests/auto/cmake/CMakeLists.txt @@ -92,6 +92,9 @@ expect_fail(fail5) expect_pass("pass(needsquoting)6") expect_pass(pass7) expect_pass(pass8) -if (UNIX) + +# If QtDBus has been installed then run the tests for its macros. +find_package(Qt5DBus QUIET) +if (Qt5DBus_FOUND) expect_pass(pass9) endif() -- cgit v1.2.3