summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/CMakeLists.txt2
-rw-r--r--src/gui/configure.cmake2
-rw-r--r--src/plugins/platforms/xcb/CMakeLists.txt4
3 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index f8793256b9..b3f5a880b1 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -7,6 +7,8 @@ set(OpenGL_GL_PREFERENCE GLVND) # special case:
#####################################################################
# special case begin
+qt_find_package(X11_XCB)
+
if (QT_FEATURE_gui)
if (WINRT)
set(_default_platform "winrt")
diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake
index 2aa73cbefe..71c3bb15c1 100644
--- a/src/gui/configure.cmake
+++ b/src/gui/configure.cmake
@@ -100,7 +100,7 @@ if((LINUX) OR QT_FIND_ALL_PACKAGES_ALWAYS)
qt_find_package(XKB 0.4.1 PROVIDED_TARGETS XKB::XKB)
endif()
if((LINUX) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XRender PROVIDED_TARGETS PkgConfig::xrender)
+ qt_find_package(XRender PROVIDED_TARGETS PkgConfig::XRender)
endif()
diff --git a/src/plugins/platforms/xcb/CMakeLists.txt b/src/plugins/platforms/xcb/CMakeLists.txt
index 77fda139cf..2d5dbbef1d 100644
--- a/src/plugins/platforms/xcb/CMakeLists.txt
+++ b/src/plugins/platforms/xcb/CMakeLists.txt
@@ -8,6 +8,7 @@ qt_find_package(XKB)
qt_find_package(PkgConfig)
qt_find_package(WrapFreetype)
qt_find_package(GLIB2)
+qt_find_package(XRender PROVIDED_TARGETS PkgConfig::XRender)
pkg_check_modules(XKB_COMMON_X11 xkbcommon-x11>=0.4.1 IMPORTED_TARGET) # special case
# end special case:
@@ -118,6 +119,7 @@ extend_target(XcbQpa CONDITION QT_FEATURE_draganddrop
extend_target(XcbQpa CONDITION QT_FEATURE_xcb_xlib
PUBLIC_LIBRARIES
X11::XCB
+ X11::X11 # special case
)
extend_target(XcbQpa CONDITION QT_FEATURE_xcb_xinput
@@ -160,7 +162,7 @@ extend_target(XcbQpa CONDITION QT_FEATURE_xcb_native_painting
extend_target(XcbQpa CONDITION QT_FEATURE_xcb_native_painting AND QT_FEATURE_xrender
PUBLIC_LIBRARIES
- PkgConfig::xrender
+ PkgConfig::XRender
)
extend_target(XcbQpa CONDITION QT_FEATURE_fontconfig AND QT_FEATURE_xcb_native_painting