summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rwxr-xr-xutil/cmake/pro2cmake.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 3053b36598..40043d15d5 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -522,7 +522,11 @@ def write_sources_section(cm_fh: IO[str], scope: Scope, *, indent: int=0,
d = '${FW%s}' % d
if d.startswith('-l'):
d = d[2:]
- d = substitute_libs(d)
+
+ if d.startswith('-'):
+ d = '# Remove: {}'.format(d[1:])
+ else:
+ d = substitute_libs(d)
cm_fh.write('{} {}\n'.format(ind, d))
is_framework = False