summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2021-02-23 16:44:13 +0100
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2021-03-02 11:08:07 +0100
commit9d80deb92f066dba6c2bfce98f5cc83304026c2b (patch)
treed7102ccb366d433264942c012c3c771ec7aa22ec
parentba139603925453bf79994eca48b566d8f15b2af0 (diff)
cmake: disable snippets/graphicsview if "printdialog" is not available
The graphicsview doc snippet has an explicit QT_REQUIRE_CONFIG(printdialog) check that will fail the build if Qt is not configured with "printdialog". This check should be mirrored in the cmake file, so that we skip building the snippet in the first place if the feature is not available. As it stood, we would build the snippet if "printsupport" was enabled. But this is too granular, as you can configure Qt to have general print support, but at the same time, skip the print dialog. This caused the build to fail on iOS. This patch will check the correct feature in the cmake file. Change-Id: I31acc1f7c257e08374ea7b84a7fc38c66f214271 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--src/widgets/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/CMakeLists.txt b/src/widgets/CMakeLists.txt
index 7cfe9d05f6..3c049c4061 100644
--- a/src/widgets/CMakeLists.txt
+++ b/src/widgets/CMakeLists.txt
@@ -829,7 +829,7 @@ if(QT_FEATURE_private_tests)
add_subdirectory(doc/snippets/customviewstyle)
add_subdirectory(doc/snippets/filedialogurls)
add_subdirectory(doc/snippets/graphicssceneadditem)
- if(QT_FEATURE_opengl AND QT_FEATURE_printsupport)
+ if(QT_FEATURE_opengl AND QT_FEATURE_printdialog)
add_subdirectory(doc/snippets/graphicsview)
endif()
add_subdirectory(doc/snippets/mdiarea)