aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2022-01-17 10:59:57 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-18 21:07:33 +0000
commit7eeafb17a9d00197d785c11349694e7053b53174 (patch)
tree9a38daa1d38ff209b164c07dd9fecafc7b70712f /tests
parent1269e29a0f37190e72ba19b96769ae0d12290808 (diff)
Fix build with tests when qtshadertools is not available
Fixes: QTBUG-99888 Change-Id: I07638d31c3978a551f3beedd4dbaf329c1445bc7 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 3bfba0424bdc2f47188509a13132e7299330388a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/baseline/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/baseline/CMakeLists.txt b/tests/baseline/CMakeLists.txt
index 8968c6e7c3..3f178924a3 100644
--- a/tests/baseline/CMakeLists.txt
+++ b/tests/baseline/CMakeLists.txt
@@ -1,3 +1,7 @@
+if(NOT TARGET Qt::qsb)
+ return()
+endif()
+
# Special case: test includes the QBaselineTest module sources from qtbase directly
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../../qtbase/tests/baseline/shared")
add_subdirectory(scenegraph)