CMake: make QT_SKIP_DOCKER_COMPOSE more discoverable

By adding a CMake option() that is OFF by default.

Change-Id: Ic66cae5bb9739ae1db3e534f671cc1e9e4b09647
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Ahmad Samir 2022-12-07 20:45:19 +02:00
parent 7a4b89fb00
commit fbca4eb673

View File

@ -147,7 +147,9 @@ function(qt_internal_setup_docker_test_fixture name)
if (NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
return()
endif()
if (QT_SKIP_DOCKER_COMPOSE)
option(QT_SKIP_DOCKER_COMPOSE "Skip setting up docker on Linux." OFF)
if(QT_SKIP_DOCKER_COMPOSE)
return()
endif()