summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-07-01 15:00:50 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-07-05 11:19:18 +0000
commitbd009ec366aba706463edfe0e21eb2f245daf67e (patch)
tree9356249d541775c231f6aa681f68ba8e5f4ecd44 /cmake
parent8c099f821e1119b2c063f54b985573a27f2e054b (diff)
CMake: Improve 'Generating Plugins' message
Use message(STATUS) for the 'Generating Plugins' message. This way it will go to stdout instead of stderr, which follows the convention we have for most of our other messages. Also list only the modules that actually have plugins, rather than all known modules. Change-Id: I1ea0ed71418ede54790cabd32e03e82fc69f2858 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit eb8da02d055f8f761880da33b02342ca2d69b1a5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtPostProcessHelpers.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/QtPostProcessHelpers.cmake b/cmake/QtPostProcessHelpers.cmake
index 16e7b25287..36969fbe21 100644
--- a/cmake/QtPostProcessHelpers.cmake
+++ b/cmake/QtPostProcessHelpers.cmake
@@ -398,7 +398,7 @@ function(qt_internal_create_plugins_files)
endif()
qt_internal_get_qt_repo_known_modules(repo_known_modules)
- message("Generating Plugins files for ${repo_known_modules}...")
+ set(modules_with_plugins "")
foreach (QT_MODULE ${repo_known_modules})
get_target_property(target_type "${QT_MODULE}" TYPE)
if(target_type STREQUAL "INTERFACE_LIBRARY")
@@ -450,6 +450,7 @@ endif()")
get_target_property(qt_plugins "${QT_MODULE}" QT_PLUGINS)
if(qt_plugins OR QT_MODULE_PLUGIN_INCLUDES)
+ list(APPEND modules_with_plugins "${QT_MODULE}")
configure_file(
"${QT_CMAKE_DIR}/QtPlugins.cmake.in"
"${config_build_dir}/${INSTALL_CMAKE_NAMESPACE}${QT_MODULE}Plugins.cmake"
@@ -462,6 +463,10 @@ endif()")
)
endif()
endforeach()
+ if(modules_with_plugins)
+ message(STATUS "Generated QtModulePlugins.cmake files for the following modules:"
+ " ${modules_with_plugins}")
+ endif()
endfunction()
function(qt_generate_install_prefixes out_var)