diff options
author | Michal Klocek <michal.klocek@qt.io> | 2021-09-03 13:57:36 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2021-09-04 05:16:03 +0000 |
commit | 572c8163145164e3df4774354339ad85630c2941 (patch) | |
tree | 415f2a9ca74b4054d7b6f77919226cffc0b4d3ed /src/CMakeLists.txt | |
parent | 7e2016039132538fedfe51e4be51998f9b7be929 (diff) | |
download | qtwebengine-572c8163145164e3df4774354339ad85630c2941.tar.gz |
Disable widgets and quick in case of no core
No webengine build can be also specified from command line.
Pick-to: 6.2
Change-Id: I812c871dfbab4b34c650e67344af835f421ea61c
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a8c331738..ec0f556dc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -26,8 +26,6 @@ if(NOT ${QtWebEngine_SUPPORT}) ) message("-- Support check for QtWebEngine failed: ${QtWebEngine_ERROR}") set(QT_FEATURE_qtwebengine_build OFF CACHE BOOL "Build QtWebEngine" FORCE) - set(QT_FEATURE_qtwebengine_widgets_build OFF CACHE BOOL "Build QtWebEngineWidgets" FORCE) - set(QT_FEATURE_qtwebengine_quick_build OFF CACHE BOOL "Build QtWebEngineQuick" FORCE) endif() if(NOT ${QtPdf_SUPPORT}) @@ -46,6 +44,11 @@ if(NOT QT_FEATURE_qtwebengine_build AND NOT QT_FEATURE_qtpdf_build) return() endif() +if(NOT QT_FEATURE_qtwebengine_build) + set(QT_FEATURE_qtwebengine_widgets_build OFF CACHE BOOL "Build QtWebEngineWidgets" FORCE) + set(QT_FEATURE_qtwebengine_quick_build OFF CACHE BOOL "Build QtWebEngineQuick" FORCE) +endif() + ## # MODULES ## |