From a2589b9ed43d376b245f918da0c28158da2f31a6 Mon Sep 17 00:00:00 2001 From: fedepell Date: Sat, 1 Jun 2019 22:51:38 +0200 Subject: [PATCH] qt5: ignore moc generation on uninstall target --- waflib/Tools/qt5.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/waflib/Tools/qt5.py b/waflib/Tools/qt5.py index 9f432801..f4cc3999 100644 --- a/waflib/Tools/qt5.py +++ b/waflib/Tools/qt5.py @@ -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()