From 422649a59fe02c48faf927729d43e096c1229f13 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 18 May 2020 17:20:34 +0200 Subject: [PATCH] CMake: Fix empty plugin_types value in module pri files Avoid writing module_plugin_types-NOTFOUND into the module .pri files. Change-Id: I2fed7b0d1c21e2233eebcaca419f522a07d22af4 Reviewed-by: Alexandru Croitor --- cmake/QtBuild.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 743971eb3b5..d31077d9485 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -754,7 +754,11 @@ function(qt_generate_module_pri_file target target_path config_module_name pri_f set(module_plugin_types "") else() get_target_property(module_plugin_types ${target} MODULE_PLUGIN_TYPES) - list(JOIN module_plugin_types " " module_plugin_types) + if(module_plugin_types) + list(JOIN module_plugin_types " " module_plugin_types) + else() + set(module_plugin_types "") + endif() endif() qt_path_join(pri_file_name "${target_path}" "qt_lib_${config_module_name}.pri")