Skip to content

Commit

Permalink
Code generator: rewrite or create a new no-moc file (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Kunichik authored and Vitalii Arteev committed Oct 26, 2020
1 parent e595702 commit d65ebfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/facelift/facelift-codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def run_generation(input, output, dependency, all, noMocFilePath, noMocListFile)
def generate(input, output, dependency, all, no_moc_file_path):
"""Takes several files or directories as input and generates the code
in the given output directory."""
with open('{}/no_moc.cmake'.format(output), 'a+') as noMocListFile:
with open('{}/no_moc.cmake'.format(output), 'w') as noMocListFile:
noMocListFile.write('set(HEADERS_NO_MOC_GENERATED\n')
run_generation(input, output, dependency, all, no_moc_file_path, noMocListFile)
noMocListFile.write(')\n')
Expand Down

0 comments on commit d65ebfc

Please sign in to comment.