diff --git a/cmake/QtBuildInformation.cmake b/cmake/QtBuildInformation.cmake index 1d9dc790573..7fff6e5dbd3 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()