CMake: Show the "Docker image ... not found" warning only once
...when configuring Qt with QT_BUILD_TESTS=ON and without QT_SKIP_DOCKER_COMPOSE=ON. There's no point in flooding the output with the same warning. Change-Id: Ic7ab38dc0ca7d6cec31501da4c79170cf26e66a1 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
e70d7e611e
commit
3223c06d43
@ -135,6 +135,11 @@ function(qt_internal_setup_docker_test_fixture name)
|
||||
if (NOT DEFINED QT_DOCKER_TEST_SERVER)
|
||||
execute_process(COMMAND "${QT_DOCKER}" images -aq "qt-test-server-*" OUTPUT_VARIABLE QT_DOCKER_TEST_SERVER)
|
||||
if (NOT QT_DOCKER_TEST_SERVER)
|
||||
get_cmake_property(warning_shown QT_TEST_DOCKER_WARNING_SHOWN)
|
||||
if(warning_shown)
|
||||
return()
|
||||
endif()
|
||||
set_property(GLOBAL PROPERTY QT_TEST_DOCKER_WARNING_SHOWN ON)
|
||||
message(WARNING
|
||||
"Docker image qt-test-server-* not found.\n"
|
||||
"Run the provisioning script (coin/provisioning/.../testserver/docker_testserver.sh) in advance\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user