From 9be52337fddc4e2db64ee9289190e43e728c6536 Mon Sep 17 00:00:00 2001 From: Juha Vuolle Date: Thu, 8 May 2025 09:46:50 +0300 Subject: [PATCH] Skip sax autotests if XML is disabled Qt lite configurations may disable XML altogether (-no-feature-xml). Sax autotests link and rely on XML => disable tests when XML is disabled. Fixes: QTBUG-136673 Change-Id: Idd837781651d2b834a28ee8cd52516886a95b744 Reviewed-by: Ivan Solovev --- tests/auto/core5/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/auto/core5/CMakeLists.txt b/tests/auto/core5/CMakeLists.txt index c8334c0..12f0c98 100644 --- a/tests/auto/core5/CMakeLists.txt +++ b/tests/auto/core5/CMakeLists.txt @@ -5,7 +5,9 @@ add_subdirectory(codecs) add_subdirectory(io) -add_subdirectory(sax) +if (TARGET Qt::Xml) + add_subdirectory(sax) +endif() add_subdirectory(serialization) add_subdirectory(text) add_subdirectory(tools)