diff options
author | Joerg Bornemann <[email protected]> | 2023-02-14 08:49:11 +0100 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2023-02-14 08:57:02 +0000 |
commit | 05d713a2baf238f4a89e6f78e23156e51150adb6 (patch) | |
tree | bb7155d8c95f0993e7e5bb5b34d3e74d8223198a /examples/quickcontrols/chattutorial | |
parent | 89e297662ed86298485c935c64ef4d6b60edc260 (diff) |
CMake: Fix configuration errors in quickcontrols chat tutorial
Amends 32dac75fb47cc21626e9d8a3f9b07889cb3dad37.
Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: I4fb2ca6d7ce29f6495c7f2bacaeb3596d1fd8e08
Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'examples/quickcontrols/chattutorial')
-rw-r--r-- | examples/quickcontrols/chattutorial/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/quickcontrols/chattutorial/CMakeLists.txt b/examples/quickcontrols/chattutorial/CMakeLists.txt index 35601f0853..3a73a7380b 100644 --- a/examples/quickcontrols/chattutorial/CMakeLists.txt +++ b/examples/quickcontrols/chattutorial/CMakeLists.txt @@ -6,7 +6,11 @@ qt_internal_add_example(chapter2) qt_internal_add_example(chapter3) if (TARGET Qt::Sql) qt_internal_add_example(chapter4) - set_target_properties(chattutorial-chapter4 PROPERTIES UNITY_BUILD OFF) + if(TARGET chattutorial-chapter4) + set_target_properties(chattutorial-chapter4 PROPERTIES UNITY_BUILD OFF) + endif() qt_internal_add_example(chapter5) - set_target_properties(chattutorial-chapter5 PROPERTIES UNITY_BUILD OFF) + if(TARGET chattutorial-chapter5) + set_target_properties(chattutorial-chapter5 PROPERTIES UNITY_BUILD OFF) + endif() endif() |