Skip to content

Commit 0f8486a

Browse files
committed
[commontk] cmake: Suggest XmlPatterns as a build option only with Qt 5
Since XmlPatterns was removed in Qt 6, it should not be considered. See https://doc.qt.io/qt-6/whatsnew60.html#removed-modules-in-qt-6-0
1 parent 805e3c0 commit 0f8486a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@ set(qtlibs
3939
Multimedia
4040
UiTools
4141
Xml
42-
XmlPatterns
4342
)
43+
# XmlPatterns is removed from Qt 6
44+
if(PythonQt_QT_VERSION VERSION_EQUAL "5")
45+
list(APPEND qtlibs
46+
XmlPatterns
47+
)
48+
endif()
4449

4550
#-----------------------------------------------------------------------------
4651
# Python libraries

0 commit comments

Comments
 (0)