summaryrefslogtreecommitdiffstats
path: root/configure.cmake
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-05-08 14:33:58 +0200
committerAlbert Astals Cid <albert.astals.cid@kdab.com>2019-05-10 15:09:49 +0000
commit400f94109dfb0b8fc28ee1e852b59891d3084624 (patch)
tree7e0eee5da3c6389eb4b00a5127d67086003526ed /configure.cmake
parent263af45b4cf5c0f44e2920a6bd144983e421af92 (diff)
CMake: Wrap DBus1 find_package call to fix xproto not being picked up
DBus1 (1.12) configuration file breaks PKG_CONFIG environment variables and will thus prevent other libraries to be picked up by pkgconfig. Main sympthom is that xproto is not getting picked up anymore, which results in hundreds of lines of warnings about this being printed. Work around that by wrapping the call to find_package(DBus1) and restoring the environment. Change-Id: Ia69f10b014dddc32045b40972500a843e5d29b38 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.cmake b/configure.cmake
index 92e4198add..957d7fb13b 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -9,7 +9,7 @@
qt_find_package(ZLIB PROVIDED_TARGETS ZLIB::ZLIB)
set_package_properties(ZLIB PROPERTIES TYPE REQUIRED)
qt_find_package(ZSTD PROVIDED_TARGETS ZSTD::ZSTD)
-qt_find_package(DBus1 PROVIDED_TARGETS dbus-1)
+qt_find_package(WrapDBus1 PROVIDED_TARGETS dbus-1)
qt_find_package(Libudev PROVIDED_TARGETS PkgConfig::Libudev)