diff options
-rw-r--r-- | examples/qtestlib/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/qtestlib/qtestlib.pro | 2 |
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 |