CMake: Ensure build instructions are always shown the first time
Regardless of the current log level. Somewhat similar tobb10dd5c860a7bAmendse2a0ddbb69Pick-to: 6.2 6.3 6.4 Change-Id: Ib7bc87f07e195125c858dcece2df6e82303dd01c Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
parent
d76bf64531
commit
12629c6b80
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue