Use pkg-config instead of hardcoded path to Qt5 moc

This commit is contained in:
Zeno Sebastian Endemann 2020-05-10 11:40:02 +02:00 committed by Screwtapello
parent d9f80db036
commit d383f0e883
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ ifneq ($(filter $(platform),linux bsd),)
endif
ifeq ($(hiro),qt5)
moc = /usr/local/lib/qt5/bin/moc
moc = $(shell pkg-config --variable=host_bins Qt5Core)/moc
hiro.flags = $(flags.cpp) -DHIRO_QT=5 -fPIC $(shell pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets)
hiro.options = -L/usr/local/lib -lX11 $(shell pkg-config --libs Qt5Core Qt5Gui Qt5Widgets)
endif