aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2025-04-10 14:05:13 +0200
committerMichal Klocek <michal.klocek@qt.io>2025-04-10 17:13:42 +0200
commit94e3694258b39c1a657f1df5118e7bc326acde15 (patch)
treed967fb044282b676a92b7727cd1bc2afaf31f047
parent051cabf584930a7805e4241d318047815234d49e (diff)
Do not run cmake test on WoA cross-compile
On coin for WoA we have hackish setup to reduce integration time where host tools are deliver by mingw, build is done as cross build and tests run natively on WoA, meaning tooling can not execute natively. Task-number: COIN-1211 Change-Id: Ifa35c3d539a5ef46c7ca6b506f009ea3a95e63fd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--tests/auto/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
index 9471dda67f..6792501baa 100644
--- a/tests/auto/CMakeLists.txt
+++ b/tests/auto/CMakeLists.txt
@@ -1,7 +1,9 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
-add_subdirectory(cmake)
+if(NOT (WIN32 AND CMAKE_CROSSCOMPILING))
+ add_subdirectory(cmake)
+endif()
# For now, only build a subset of CMake 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.