From 232e7e4061a050abf58cf87041444a0e1939ef3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=81o=C5=9B?= Date: Tue, 25 Jun 2024 10:24:29 +0200 Subject: [PATCH] Disable tests dependent on QProcess when it is not available The scenegraph and controls baseline tests depend on QProcess. On some platforms (e.g. VxWorks) QProcess is not available. This leads to compilation errors. Fix the issue by only building the tests when QProcess is available. Task-number: QTBUG-115777 Change-Id: Ic1af0fc7456c56e22b4fd147ac12edf7facb3550 Reviewed-by: Alexandru Croitor --- tests/baseline/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/baseline/CMakeLists.txt b/tests/baseline/CMakeLists.txt index 346444d79b..742832aa1c 100644 --- a/tests/baseline/CMakeLists.txt +++ b/tests/baseline/CMakeLists.txt @@ -7,7 +7,7 @@ endif() # Special case: test includes the QBaselineTest module sources from qtbase directly if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../../qtbase/tests/baseline/shared") - if(QT_FEATURE_processenvironment) + if(QT_FEATURE_processenvironment AND QT_FEATURE_process) add_subdirectory(scenegraph) add_subdirectory(controls) endif()