CMake: Ensure build instructions are always shown the first time

Regardless of the current log level.

Somewhat similar to dd5c860a7b5f5bf347b698b9145c45d369325e42

Amends e2a0ddbb69640c94b4ee107260a088d5c1c7e273

Pick-to: 6.2 6.3 6.4
Change-Id: Ib7bc87f07e195125c858dcece2df6e82303dd01c
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Alexandru Croitor 2022-07-21 12:04:49 +02:00
parent d76bf64531
commit 12629c6b80

View File

@ -94,7 +94,7 @@ from the build directory \n")
list(JOIN msg "\n" msg)
if(NOT QT_INTERNAL_BUILD_INSTRUCTIONS_SHOWN)
message(STATUS "${msg}")
qt_configure_print_build_instructions_helper("${msg}")
endif()
set(QT_INTERNAL_BUILD_INSTRUCTIONS_SHOWN "TRUE" CACHE STRING "" FORCE)
@ -109,6 +109,13 @@ function(qt_configure_print_summary_helper summary_reports force_show)
message(STATUS "Configure summary:\n${__qt_configure_reports}")
endfunction()
function(qt_configure_print_build_instructions_helper msg)
# We want to ensure build instructions are always shown the first time, regardless of the
# current log level.
set(CMAKE_MESSAGE_LOG_LEVEL "STATUS")
message(STATUS "${msg}")
endfunction()
function(qt_configure_print_summary)
# Evaluate all recorded commands.
qt_configure_eval_commands()