From 33387befdb83b2fee006d7f785ce86d3ac24bae6 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 1 Apr 2015 12:09:38 +0200 Subject: [PATCH] Ignore moc missing if MOC_FILES is empty (nw) --- makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makefile b/makefile index c76b4e03514..bea948dcb7f 100644 --- a/makefile +++ b/makefile @@ -750,7 +750,9 @@ MOCTST = $(shell which moc-qt4 2>/dev/null) ifeq '$(MOCTST)' '' MOCTST = $(shell which moc 2>/dev/null) ifeq '$(MOCTST)' '' +ifneq '$(MOC_FILES)' '' $(error Qt's Meta Object Compiler (moc) wasn't found!) +endif else MOC = $(MOCTST) endif