mirror of
https://bitbucket.org/smil3y/katana.git
synced 2025-02-23 10:22:46 +00:00
automoc.py: fixup automoc4_add_library adjustment
This commit is contained in:
parent
de863d8c94
commit
548fa47b03
1 changed files with 1 additions and 1 deletions
|
@ -33,8 +33,8 @@ for sroot, ldirs, lfiles in os.walk(directory):
|
|||
for sfile in lfiles:
|
||||
if not sfile.endswith('CMakeLists.txt'):
|
||||
continue
|
||||
smatch = re.findall('(automoc4_add_library)', fread(sfull))
|
||||
sfull = os.path.join(sroot, sfile)
|
||||
smatch = re.findall('(automoc4_add_library)', fread(sfull))
|
||||
if smatch:
|
||||
print('Adjusting automoc4_add_library of', sfull)
|
||||
fwrite(sfull, fread(sfull).replace('\nautomoc4_add_library', '\nadd_library'))
|
||||
|
|
Loading…
Add table
Reference in a new issue