summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-05-18 17:20:34 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-05-19 13:27:07 +0200
commit422649a59fe02c48faf927729d43e096c1229f13 (patch)
tree10bde29ca14ea0af2183643cc96d88f3abb73a51 /cmake
parentc975c35eaebcca3bd33931fecc3beb513e332292 (diff)
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>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBuild.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
index 743971eb3b..d31077d948 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")