summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2023-05-05 12:02:26 +0200
committerAxel Spoerl <axel.spoerl@qt.io>2023-05-05 13:16:33 +0200
commit7ae8a61df62f9c6793ef5540846008ac03d87828 (patch)
treef34ea3794b277f6a1c9c3d2eb5197a88c288aeee
parent5a67a065d6edc9cbb1a99918384c0dace5e6b3ae (diff)
downloadqtdoc-7ae8a61df62f9c6793ef5540846008ac03d87828.tar.gz
Documentviewer demo: Remove optional PrintSupport and PdfWidgets deps
This patch removes optional dependencies to eliminate compiler errors/warnings. Task-number: QTBUG-113377 Change-Id: I95707ccad30837093263d509a5617b2de4574962 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
-rw-r--r--examples/demos/documentviewer/CMakeLists.txt4
-rw-r--r--examples/demos/documentviewer/app/CMakeLists.txt3
2 files changed, 3 insertions, 4 deletions
diff --git a/examples/demos/documentviewer/CMakeLists.txt b/examples/demos/documentviewer/CMakeLists.txt
index 28f91fc1..97636339 100644
--- a/examples/demos/documentviewer/CMakeLists.txt
+++ b/examples/demos/documentviewer/CMakeLists.txt
@@ -4,8 +4,8 @@
cmake_minimum_required(VERSION 3.16)
project(documentviewer LANGUAGES CXX)
-find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets
- OPTIONAL_COMPONENTS PrintSupport PdfWidgets)
+find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
+# OPTIONAL_COMPONENTS PrintSupport PdfWidgets)
if(NOT DEFINED INSTALL_EXAMPLESDIR)
set(INSTALL_EXAMPLESDIR "examples")
diff --git a/examples/demos/documentviewer/app/CMakeLists.txt b/examples/demos/documentviewer/app/CMakeLists.txt
index 66b9cbec..c27282b8 100644
--- a/examples/demos/documentviewer/app/CMakeLists.txt
+++ b/examples/demos/documentviewer/app/CMakeLists.txt
@@ -1,8 +1,7 @@
cmake_minimum_required(VERSION 3.16)
project(documentviewer LANGUAGES CXX)
-find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets
- OPTIONAL_COMPONENTS PrintSupport PdfWidgets)
+find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
qt_standard_project_setup()