summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2023-11-27 14:50:22 +0100
committerRobert Griebl <robert.griebl@qt.io>2023-11-27 23:26:59 +0100
commit5c386af006c777ec1e694286499d5121af10f78a (patch)
tree09e21e8001de74d9116166a771b36bfd20408d06 /tests
parent528407085ff26743a42a21a7b2bda4c333a3ccf4 (diff)
Skip test package creation, if the installer component is disabled
Change-Id: I9c86c506df8fc8907537599f91c38d46c46efc66 Task-number: QTBUG-119476 Pick-to: 6.6 6.5 6.2 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/data/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/data/CMakeLists.txt b/tests/data/CMakeLists.txt
index 521749b9..31b64799 100644
--- a/tests/data/CMakeLists.txt
+++ b/tests/data/CMakeLists.txt
@@ -1,4 +1,9 @@
+if (NOT QT_FEATURE_am_installer)
+ message(WARNING "QT_FEATURE_am_installer is disabled, cannot generate test packages")
+ return()
+endif()
+
file(GLOB_RECURSE TEST_DATA_FILES
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
certificates/*