CMake: Ensure build instructions are always shown the first time

Regardless of the current log level.

Somewhat similar to dd5c860a7b5f5bf347b698b9145c45d369325e42

Amends e2a0ddbb69640c94b4ee107260a088d5c1c7e273

Change-Id: Ib7bc87f07e195125c858dcece2df6e82303dd01c
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
(cherry picked from commit 12629c6b808e476b474e6db98ae5ded64f5fc44f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Alexandru Croitor 2022-07-21 12:04:49 +02:00 committed by Qt Cherry-pick Bot
parent b72f1d9937
commit b7676a5428

View File

@ -76,7 +76,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)
@ -91,6 +91,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()