summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-04-09 11:35:18 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-04-09 09:54:23 +0000
commit511124bf1d297f8561cbca3b768ef24a12eb36cb (patch)
tree9d43861302f109446f86a290c0f85ff79a6282ad /util
parent341729db15ff52b037141092d462b1c92a7f669a (diff)
CMake: pro2cmake.py: Fix plugin type only prints first letter
Change-Id: Ib8989d2c13199d804d0c069903ca1c5eb61763e6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 34921b4e37..9399be5f33 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -976,7 +976,7 @@ def write_sources_section(cm_fh: typing.IO[str], scope: Scope, *,
plugin_type = scope.get_string('PLUGIN_TYPE')
if plugin_type:
- cm_fh.write('{} TYPE {}\n'.format(ind, plugin_type[0]))
+ cm_fh.write('{} TYPE {}\n'.format(ind, plugin_type))
source_keys: typing.List[str] = []
write_source_file_list(cm_fh, scope, 'SOURCES',