summaryrefslogtreecommitdiffstats
path: root/examples/qtestlib
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2020-08-11 20:10:48 +0200
committerAndy Shaw <andy.shaw@qt.io>2020-08-12 19:37:15 +0200
commit53da069b3294b45db05feca751a6d4569eb8c7ab (patch)
treeea16ba1322add2bf8ee7cc8afa40db7bad509353 /examples/qtestlib
parentff6a3a80dd7d245924934be519dd3385d7c87b10 (diff)
Don't depend on tools for the qtestlib examples
Only widgets is required here, so drop the dependency on QT_BUILD_PARTS and just depend on widgets. Pick-to: 5.15 Change-Id: Idaae547b69ffd91681900b33c73e4a341011c30c Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples/qtestlib')
-rw-r--r--examples/qtestlib/CMakeLists.txt2
-rw-r--r--examples/qtestlib/qtestlib.pro2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/qtestlib/CMakeLists.txt b/examples/qtestlib/CMakeLists.txt
index a98c499c00..a3ffcd2481 100644
--- a/examples/qtestlib/CMakeLists.txt
+++ b/examples/qtestlib/CMakeLists.txt
@@ -1,6 +1,6 @@
# Generated from qtestlib.pro.
-if(NOT QT_BUILD_PARTS___contains___tools OR NOT TARGET Qt::Widgets)
+if(NOT TARGET Qt::Widgets)
return()
endif()
add_subdirectory(tutorial1)
diff --git a/examples/qtestlib/qtestlib.pro b/examples/qtestlib/qtestlib.pro
index 4a7663a088..bbebe0a950 100644
--- a/examples/qtestlib/qtestlib.pro
+++ b/examples/qtestlib/qtestlib.pro
@@ -1,4 +1,4 @@
-requires(contains(QT_BUILD_PARTS,tools):qtHaveModule(widgets))
+requires(qtHaveModule(widgets))
TEMPLATE = subdirs
SUBDIRS = tutorial1 tutorial2 tutorial3 tutorial4 tutorial5