summaryrefslogtreecommitdiffstats
path: root/cmake/FindWrapDBus1.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindWrapDBus1.cmake')
-rw-r--r--cmake/FindWrapDBus1.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/FindWrapDBus1.cmake b/cmake/FindWrapDBus1.cmake
index c2668d6cc8..55f9757c45 100644
--- a/cmake/FindWrapDBus1.cmake
+++ b/cmake/FindWrapDBus1.cmake
@@ -2,6 +2,10 @@
# Work around that:-/
# See https://gitlab.freedesktop.org/dbus/dbus/issues/267 for more information
+if(DBus1_FOUND OR WrapDBus1_FOUND)
+ return()
+endif()
+
if(DEFINED ENV{PKG_CONFIG_DIR})
set(__qt_dbus_pcd "$ENV{PKG_CONFIG_DIR}")
endif()