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 <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann 2020-05-18 17:20:34 +02:00
parent c975c35eae
commit 422649a59f

View File

@ -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)
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")