summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKevin Funk <kevin.funk@kdab.com>2019-06-04 15:27:48 +0200
committerKevin Funk <kevin.funk@kdab.com>2019-06-04 15:34:27 +0000
commit772f5dbf1c30b9b0a26ac48a8ae1e1d5cf58b130 (patch)
tree2948e28431eddce55e73758587098409606c3b6b /util
parent8fea3ec4e77dfebe2e84e10ae0f014d03b9098b3 (diff)
pro2cmake: Always add a newline after func calls
Fixes the situation where we end up with e.g.: ``` target_link_libraries(... )target_link_libraries(... ) ``` Change-Id: I455563b24850db7f389746385af53cd606343274 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 dc6c1fc873..4b2b8dc5c7 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -1125,7 +1125,7 @@ def write_list(cm_fh: typing.IO[str], entries: typing.List[str],
for s in sort_sources(entries):
cm_fh.write('{}{}{}\n'.format(ind, extra_indent, s))
if footer:
- cm_fh.write('{}{}'.format(ind, footer))
+ cm_fh.write('{}{}\n'.format(ind, footer))
def write_source_file_list(cm_fh: typing.IO[str], scope, cmake_parameter: str,