CMake: Enable verbose autogen for cmake auto tests and EP examples

So we can see the exact moc invocations when debugging issues in the
CI.

For ExternalProject examples, it is conditional on whether Qt is
configured with QT_INTERNAL_VERBOSE_EXAMPLES set to ON, otherwise
calling the main ninja without -v will end up cluttering the output
with AUTOGEN output.

Pick-to: 6.2 6.3
Change-Id: I6468ab0e461b3be283e2428e3515cae4d5986242
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexandru Croitor 2022-03-23 16:24:16 +01:00
parent 64d5708458
commit 70c3dd4a54
2 changed files with 2 additions and 0 deletions

View File

@ -1049,6 +1049,7 @@ function(qt_internal_add_example_external_project subdir)
if(QT_INTERNAL_VERBOSE_EXAMPLES)
list(APPEND var_defs -DCMAKE_MESSAGE_LOG_LEVEL:STRING=DEBUG)
list(APPEND var_defs -DCMAKE_AUTOGEN_VERBOSE:BOOL=TRUE)
endif()
set(deps "")

View File

@ -64,6 +64,7 @@ function(_qt_internal_get_cmake_test_configure_options out_var)
endif()
list(APPEND option_list "-DCMAKE_MESSAGE_LOG_LEVEL=DEBUG")
list(APPEND option_list "-DCMAKE_AUTOGEN_VERBOSE=TRUE")
if(APPLE AND CMAKE_OSX_ARCHITECTURES)
list(LENGTH CMAKE_OSX_ARCHITECTURES osx_arch_count)