diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-09-06 17:22:31 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-09-07 14:52:22 +0200 |
commit | bd33d1204a02b18784cfd2fe12b4ea76757755a7 (patch) | |
tree | ded63241e930cf08c015ada63723a68734dbb45d /tests | |
parent | 7292b6f83336496ca88975c8ad15096286143a2d (diff) | |
download | qtsvg-bd33d1204a02b18784cfd2fe12b4ea76757755a7.tar.gz |
CMake: Don't build iOS auto tests when QT_BUILD_MINIMAL_STATIC_TEST
is set, so that integrations don't fail.
In the future we might add build-only tests like we have in qtbase.
Pick-to: 6.4
Task-number: QTBUG-96056
Change-Id: I444bf99a605c293c700edc8b58cae6c2b775dc05
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt index 654a7d4..4d32595 100644 --- a/tests/auto/CMakeLists.txt +++ b/tests/auto/CMakeLists.txt @@ -1,7 +1,13 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -# Generated from auto.pro. +# For now, don't built auto tests when QT_BUILD_MINIMAL_STATIC_TEST +# is specified and the build is targeting iOS. QT_BUILD_MINIMAL_STATIC_TEST is used in our CI. +# Regular non-cmake build tests shouldn't be built because the CI will try to run them and fail +# due to missing simulator support. +if(IOS AND QT_BUILD_MINIMAL_STATIC_TESTS) + return() +endif() if(TARGET Qt::Widgets) add_subdirectory(qsvgdevice) |