diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-03-23 14:43:23 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-25 07:09:01 +0000 |
commit | 0a574d7a7bdd71236c453bc882f92629fc8f7e9d (patch) | |
tree | 0c5864c6b01b881377c5a39a9cc72f590706bee9 /cmake | |
parent | e7a61ea72bf7ebc6d0ebb66fe2f172a7701d6ed2 (diff) |
CMake: Enable debug verbosity for cmake auto tests and EP examples
Since e2a0ddbb69640c94b4ee107260a088d5c1c7e273 , if Qt is configured
as a non-developer-build, some of the CMake tests that include QtSetup
would have their CMAKE_MESSAGE_LOG_LEVEL set to the reduced NOTICE
value.
Make sure that tests always have a DEBUG level, so that if they fail
in the CI, we have more info on what goes wrong.
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 a non default log level.
Amends e2a0ddbb69640c94b4ee107260a088d5c1c7e273
Change-Id: Icd3b6e0fcc6c73e4b53b6c4a6d8354c96077a050
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit 64d5708458d611fe6f96c0f9ad4b9ec457e807cd)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtBuildInternals/QtBuildInternalsConfig.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake b/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake index a515fcd43d..279abdb8a0 100644 --- a/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake +++ b/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake @@ -1047,6 +1047,9 @@ function(qt_internal_add_example_external_project subdir) list(APPEND var_defs -D${var_with_type}=${varForGenex}) endforeach() + if(QT_INTERNAL_VERBOSE_EXAMPLES) + list(APPEND var_defs -DCMAKE_MESSAGE_LOG_LEVEL:STRING=DEBUG) + endif() set(deps "") list(REMOVE_DUPLICATES QT_EXAMPLE_DEPENDENCIES) |