cmake: Extend qt_configure_add_summary_section by a message type

With the existing types we can only display a list of features or
whether a feature is on or off, but we cannot display arbitrary values.

Using the new message type, it is possible to show paths or versions as
summary entries.

Change-Id: I5d16cb4b30923f3566755bd4d7440bdd1ece82f5
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Dominik Holland 2021-03-02 09:22:34 +01:00
parent 2f9a3352b2
commit 97d9e9e68a

View File

@ -261,6 +261,8 @@ function(qt_configure_process_add_summary_entry)
endif()
qt_configure_add_report_padded("${label}" "${value}")
elseif(arg_TYPE STREQUAL "message")
qt_configure_add_report_padded("${arg_ARGS}" "${arg_MESSAGE}")
endif()
endfunction()