diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-07-21 12:04:49 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-07-26 13:17:55 +0000 |
commit | b7676a54287bb411fff0a80a79672c3ed7d4ce94 (patch) | |
tree | 26a67e093f8c48cc74261afa6c574f5165a7cee3 /cmake | |
parent | b72f1d99379002af8c2cbe520d4ba13ce911b319 (diff) |
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>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtBuildInformation.cmake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/QtBuildInformation.cmake b/cmake/QtBuildInformation.cmake index 1d9dc79057..7fff6e5dbd 100644 --- a/cmake/QtBuildInformation.cmake +++ b/cmake/QtBuildInformation.cmake @@ -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() |