pro2cmake.py: Do not try to add libraries that qmake substracts
Add a comment that a library was removed when running into "QT -= gui" and similar lines. Change-Id: I17b7922827f228c6b45e1e6867fdc5e316af3781 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
cda5d06bd8
commit
4769830034
@ -522,7 +522,11 @@ def write_sources_section(cm_fh: IO[str], scope: Scope, *, indent: int=0,
|
|||||||
d = '${FW%s}' % d
|
d = '${FW%s}' % d
|
||||||
if d.startswith('-l'):
|
if d.startswith('-l'):
|
||||||
d = d[2:]
|
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))
|
cm_fh.write('{} {}\n'.format(ind, d))
|
||||||
is_framework = False
|
is_framework = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user