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 17:14:00 +0200 |
commit | 1014517d6a121d0f765c32a6b30b12403388a3cb (patch) | |
tree | 97948fad77c4fa08be3aae75411155c220ec7338 | |
parent | 33a716bd8969c5d432683a439cd927856ac1bc1e (diff) | |
download | qtsvg-1014517d6a121d0f765c32a6b30b12403388a3cb.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.
Task-number: QTBUG-96056
Change-Id: I444bf99a605c293c700edc8b58cae6c2b775dc05
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
(cherry picked from commit bd33d1204a02b18784cfd2fe12b4ea76757755a7)
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r-- | tests/auto/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt index 31b62c6..bfc193e 100644 --- a/tests/auto/CMakeLists.txt +++ b/tests/auto/CMakeLists.txt @@ -1,4 +1,11 @@ -# 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) |