aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6')
-rw-r--r--sources/pyside6/PySide6/QtWebView/CMakeLists.txt2
-rw-r--r--sources/pyside6/cmake/PySideHelpers.cmake7
2 files changed, 7 insertions, 2 deletions
diff --git a/sources/pyside6/PySide6/QtWebView/CMakeLists.txt b/sources/pyside6/PySide6/QtWebView/CMakeLists.txt
index 974c3bf3b..158c720c9 100644
--- a/sources/pyside6/PySide6/QtWebView/CMakeLists.txt
+++ b/sources/pyside6/PySide6/QtWebView/CMakeLists.txt
@@ -25,7 +25,7 @@ set(QtWebView_libraries pyside6
set(QtWebView_deps QtGui)
# for Windows and Linux, QtWebView depends on QtWebEngine to render content
-if (WIN32 OR UNIX)
+if ((WIN32 OR UNIX) AND NOT APPLE)
list(APPEND QtWebView_deps QtWebEngineCore QtWebEngineQuick)
endif()
diff --git a/sources/pyside6/cmake/PySideHelpers.cmake b/sources/pyside6/cmake/PySideHelpers.cmake
index 265917124..ba066c9e6 100644
--- a/sources/pyside6/cmake/PySideHelpers.cmake
+++ b/sources/pyside6/cmake/PySideHelpers.cmake
@@ -129,7 +129,12 @@ macro(collect_optional_modules)
list(APPEND ALL_OPTIONAL_MODULES AxContainer)
endif()
list(APPEND ALL_OPTIONAL_MODULES WebChannel WebEngineCore WebEngineWidgets
- WebEngineQuick WebSockets HttpServer WebView)
+ WebEngineQuick WebSockets HttpServer)
+ # for Windows and Linux, QtWebView depends on QtWebEngine to render content
+ if ((WIN32 OR UNIX) AND NOT APPLE AND Qt${QT_MAJOR_VERSION}WebEngineCore_FOUND AND
+ Qt${QT_MAJOR_VERSION}WebEngineQuick_FOUND)
+ list(APPEND ALL_OPTIONAL_MODULES WebView)
+ endif()
list(APPEND ALL_OPTIONAL_MODULES 3DCore 3DRender 3DInput 3DLogic 3DAnimation 3DExtras)
endmacro()