aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-10-15 15:21:49 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-10-15 19:30:20 +0000
commita1a6fa7e089b1403f61ad5ac21e249c703840771 (patch)
tree32e19560b72209a81521e7d04e945cbac3f6f7a9 /examples
parent63f965439e697a78a4aa4d8894bd2a0c902e0cdd (diff)
chattutorial: fix build without SQL
Change-Id: I68d1a2c42cde55ed9d370411943c2cb006355186 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit f60e514300758540976c5e09e79aaa3ced1a922d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/quickcontrols2/chattutorial/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/quickcontrols2/chattutorial/CMakeLists.txt b/examples/quickcontrols2/chattutorial/CMakeLists.txt
index 9a4bd9cb11..9bfd799492 100644
--- a/examples/quickcontrols2/chattutorial/CMakeLists.txt
+++ b/examples/quickcontrols2/chattutorial/CMakeLists.txt
@@ -3,5 +3,8 @@
add_subdirectory(chapter1-settingup)
add_subdirectory(chapter2-lists)
add_subdirectory(chapter3-navigation)
-add_subdirectory(chapter4-models)
-add_subdirectory(chapter5-styling)
+if (TARGET Qt::Sql)
+ add_subdirectory(chapter4-models)
+ add_subdirectory(chapter5-styling)
+endif()
+