Skip to content

Commit 2dc1098

Browse files
felixonmars18202781743
authored andcommitted
fix: compatibility with Qt 6.10
Credits to Antonio Rojas from Arch Linux.
1 parent eab1e20 commit 2dc1098

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xcb/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ if(${QT_VERSION_MAJOR} STREQUAL "5")
99
find_package(Qt5 REQUIRED COMPONENTS XcbQpa X11Extras EdidSupport XkbCommonSupport)
1010
else()
1111
find_package(Qt6 REQUIRED COMPONENTS OpenGL XcbQpaPrivate)
12+
if(Qt6_VERSION VERSION_GREATER_EQUAL 6.10)
13+
find_package(Qt6 COMPONENTS OpenGLPrivate REQUIRED)
14+
endif()
1215
endif()
1316

1417
# NOTE(sbw): 禁止语法树上的 vrp 优化,-O2/-O3 默认开启,会导致测试虚析构函数 HOOK 失败

0 commit comments

Comments
 (0)