summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-03-22 17:38:56 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-23 18:25:53 +0000
commitc0f3b3f76ff30f4cdf7a5f89f1c9eadd97eadb59 (patch)
treeaf038c1d923602bd798267b5231a3eaa18a7a429 /cmake
parent2e4fb6751a5ae20081c2def40097702f70c18632 (diff)
CMake: Mention where the configure summary can be found
when configuring for the first time. Also mention how to increase output verbosity. Unfortunately there is no way to check what is the current log verbosity to only show the latter message conditionally. Setting --log-level does not assign the same value to CMAKE_MESSAGE_LOG_LEVEL. Amends e2a0ddbb69640c94b4ee107260a088d5c1c7e273 Change-Id: I22101b9dc7c407cc54aa5e7964dec50c7490f8f5 Reviewed-by: Dimitrios Apostolou <jimis@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 384dfceb532cada5f4be96430c8c7c866f40c933) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBuildInformation.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/QtBuildInformation.cmake b/cmake/QtBuildInformation.cmake
index 1b20a71afa..25666acf85 100644
--- a/cmake/QtBuildInformation.cmake
+++ b/cmake/QtBuildInformation.cmake
@@ -72,6 +72,14 @@ function(qt_configure_print_summary)
file(WRITE "${summary_file}" "")
# Show Qt-specific configure summary and any notes, wranings, etc.
if(__qt_configure_reports)
+ if(NOT QT_INTERNAL_SUMMARY_INSTRUCTIONS_SHOWN)
+ message("")
+ message(
+ "-- Cconfiguration summary has been written to ${CMAKE_BINARY_DIR}/config.summary")
+ message(
+ "-- Configure with --log-level=STATUS or higher to increase the output verbosity.")
+ endif()
+
message(STATUS "Configure summary:\n${__qt_configure_reports}")
file(APPEND "${summary_file}" "${__qt_configure_reports}")
endif()
@@ -92,6 +100,7 @@ function(qt_configure_print_summary)
message(FATAL_ERROR "Check the configuration messages for an error that has occurred.")
endif()
file(APPEND "${summary_file}" "\n")
+ set(QT_INTERNAL_SUMMARY_INSTRUCTIONS_SHOWN "TRUE" CACHE STRING "" FORCE)
endfunction()
# Takes a list of arguments, and saves them to be evaluated at the end of the configuration