summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2025-11-20 07:43:45 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2025-11-25 16:07:11 +0100
commitd26207d526b832f40baf8c818f59f4dc57e96857 (patch)
treee292060f6ab65fdca251ed8ede97eb279272b633
parenta078a11d816332a7f8f3381f016bf2b9e6a54fcf (diff)
CMake: Don't find_package the whole of XCB
find_package(XCB) without specifying components will find_package all components except XINPUT. We now specify the XCB component for the base XCB library. This saves around 1 s configure time on my machine. Change-Id: I55e964dafc302e274b477621b1defe0b1ac8d1d6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--src/gui/configure.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake
index 5001f2deeec..3db38384303 100644
--- a/src/gui/configure.cmake
+++ b/src/gui/configure.cmake
@@ -98,7 +98,8 @@ if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
qt_find_package(X11 MODULE PROVIDED_TARGETS X11::SM X11::ICE MODULE_NAME gui QMAKE_LIB x11sm)
endif()
if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB 1.11 MODULE PROVIDED_TARGETS XCB::XCB MODULE_NAME gui QMAKE_LIB xcb)
+ qt_find_package(XCB 1.11 MODULE
+ COMPONENTS XCB PROVIDED_TARGETS XCB::XCB MODULE_NAME gui QMAKE_LIB xcb)
endif()
if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
qt_find_package(XCB 0.1.1 MODULE