summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-07-21 12:04:49 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2022-07-26 11:10:28 +0200
commit12629c6b808e476b474e6db98ae5ded64f5fc44f (patch)
tree2e5b3f2a02f691b4f14d1ffdef99d2cc8a8e99c0 /cmake
parentd76bf645316a13495672741e54d270bada03752c (diff)
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>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBuildInformation.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/QtBuildInformation.cmake b/cmake/QtBuildInformation.cmake
index 6f5edbb4b1..97f2b39597 100644
--- a/cmake/QtBuildInformation.cmake
+++ b/cmake/QtBuildInformation.cmake
@@ -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()