We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 56550e4 + abeac25 commit a081f9dCopy full SHA for a081f9d
1 file changed
CMakeLists.txt
@@ -43,7 +43,15 @@ set(minimum_required_qt_version ${minimum_required_qt${PythonQt_QT_VERSION}_vers
43
set(qt5libs Core Widgets Network OpenGL Sql Svg UiTools WebKitWidgets Xml XmlPatterns)
44
set(qt4libs core gui network opengl sql svg uitools webkit xml xmlpatterns)
45
set(qtlibs ${qt${PythonQt_QT_VERSION}libs})
46
-
+
47
+# Webkit need to be removed Qt >= 5.6
48
+if(PythonQt_QT_VERSION MATCHES 5)
49
+ find_package(Qt5 ${minimum_required_qt5_version} COMPONENTS Core REQUIRED)
50
+ if(${Qt5Core_VERSION_MINOR} GREATER 5)
51
+ list(REMOVE_ITEM qtlibs WebKitWidgets)
52
+ list(REMOVE_ITEM qt4libs webkit)
53
+ endif()
54
+endif()
55
#-----------------------------------------------------------------------------
56
# Python libraries
57
0 commit comments