From a1a6fa7e089b1403f61ad5ac21e249c703840771 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Fri, 15 Oct 2021 15:21:49 +0200 Subject: chattutorial: fix build without SQL Change-Id: I68d1a2c42cde55ed9d370411943c2cb006355186 Reviewed-by: Alexandru Croitor (cherry picked from commit f60e514300758540976c5e09e79aaa3ced1a922d) Reviewed-by: Qt Cherry-pick Bot --- examples/quickcontrols2/chattutorial/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'examples') 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() + -- cgit v1.2.3