summaryrefslogtreecommitdiffstats
path: root/util/cmake/pro2cmake.py
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-06-06 10:31:03 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-06-06 08:38:08 +0000
commit4e907f1f62e2dc5676aeb48b99494709b7bf9d50 (patch)
treebfac3b0f6313b2e26a521226d0cf1406478060e8 /util/cmake/pro2cmake.py
parent89b7f7671924f810c34637ee1f91de33a720521a (diff)
Fix comment fixup in pro2cmake
Comments should be removed before line continuations, otherwise the semantics of an assignment change. Found this during reconversion of qtimageformats. Adjust test to specifically test for all the expected values. Amends 76f5b784ce54730ed8d6ad4bb9c39c9a05c5d81d. Change-Id: Iaa46bbc9cbd7b2390fe9b5f0078ac33d225a9258 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'util/cmake/pro2cmake.py')
-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 bfd791a196..2eda9b69d3 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -870,8 +870,8 @@ class QmakeParser:
contents = file_fd.read()
old_contents = contents
- contents = fixup_linecontinuation(contents)
contents = fixup_comments(contents)
+ contents = fixup_linecontinuation(contents)
if old_contents != contents:
print('Warning: Fixed line continuation in .pro-file!\n'