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 <alexandru.croitor@qt.io>
This commit is contained in:
Michał Łoś 2024-06-25 10:24:29 +02:00 committed by Łukasz Matysiak
parent 5d52461f80
commit 232e7e4061
1 changed files with 1 additions and 1 deletions

View File

@ -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()