qt5: ignore moc generation on uninstall target

This commit is contained in:
fedepell 2019-06-01 22:51:38 +02:00
parent e902e7a505
commit a2589b9ed4
1 changed files with 4 additions and 0 deletions

View File

@ -167,6 +167,10 @@ class qxx(Task.classes['cxx']):
node = self.inputs[0]
bld = self.generator.bld
# on uninstall this is unnecessary and may lead to errors if files needed are generated
if bld.cmd == 'uninstall':
return
try:
# compute the signature once to know if there is a moc file to create
self.signature()