CMake: pro2cmake.py: Do not print trailing / in directory names
Change-Id: I3da83b8908791e033cf33221631d2fe988f83957 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
This commit is contained in:
parent
29ff5f77ee
commit
6ad9352544
@ -661,6 +661,7 @@ def write_sources_section(cm_fh: typing.IO[str], scope: Scope, *,
|
|||||||
if includes:
|
if includes:
|
||||||
cm_fh.write('{} INCLUDE_DIRECTORIES\n'.format(ind))
|
cm_fh.write('{} INCLUDE_DIRECTORIES\n'.format(ind))
|
||||||
for i in includes:
|
for i in includes:
|
||||||
|
i = i.rstrip('/') or ('/')
|
||||||
cm_fh.write('{} {}\n'.format(ind, i))
|
cm_fh.write('{} {}\n'.format(ind, i))
|
||||||
|
|
||||||
dependencies = [map_qt_library(q) for q in scope.diff('QT')
|
dependencies = [map_qt_library(q) for q in scope.diff('QT')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user