From d3460c1f235cccc183148596d906350f0c2e06da Mon Sep 17 00:00:00 2001 From: Amir Masoud Abdol Date: Tue, 25 Oct 2022 17:03:01 +0200 Subject: [PATCH] Enable CMAKE_MESSAGE_CONTEXT_SHOW This enables the CMake Message Context across the qt5 repo. Some of the messages were changed from NOTICE to STATUS so that the output looks more coherent and aligned. Change-Id: I4c9104479dd2af31da29cf8cfd20fdc77252d404 Reviewed-by: Alexandru Croitor --- CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a6b3ad50..1fff3d0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,7 +57,7 @@ qt_internal_sort_module_dependencies("${QT_BUILD_SUBMODULES}" QT_BUILD_SUBMODULE foreach(module IN LISTS QT_BUILD_SUBMODULES) # Check for unmet dependencies if(NOT DEFINED BUILD_${module} OR BUILD_${module}) - message(NOTICE "Checking dependencies of submodule '${module}'") + message(STATUS "Checking dependencies of submodule '${module}'") get_property(required_deps GLOBAL PROPERTY QT_REQUIRED_DEPS_FOR_${module}) get_property(dependencies GLOBAL PROPERTY QT_DEPS_FOR_${module}) foreach(dep IN LISTS dependencies) @@ -84,7 +84,7 @@ foreach(module IN LISTS QT_BUILD_SUBMODULES) "but ${error_reason}.\n" "Note: Use '-skip ${module}' to exclude it from the build.") else() - message(NOTICE "Skipping optional dependency '${dep}' of '${module}', " + message(STATUS "Skipping optional dependency '${dep}' of '${module}', " "because ${error_reason}.") endif() endif() @@ -92,8 +92,12 @@ foreach(module IN LISTS QT_BUILD_SUBMODULES) endif() endforeach() +if(NOT DEFINED CMAKE_MESSAGE_CONTEXT_SHOW) + set(CMAKE_MESSAGE_CONTEXT_SHOW TRUE) +endif() + foreach(module IN LISTS QT_BUILD_SUBMODULES) - message(NOTICE "Configuring submodule '${module}'") + message(STATUS "Configuring submodule '${module}'") ecm_optional_add_subdirectory("${module}") if(module STREQUAL "qtbase")