Ignore moc missing if MOC_FILES is empty (nw)

master
Miodrag Milanovic 2015-04-01 12:09:38 +02:00
parent 627b7c61dc
commit 33387befdb
1 changed files with 2 additions and 0 deletions

View File

@ -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