build-system: don't show spurious errors looking for qmake

And improve the message if we do indeed not find it.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-09-05 17:12:44 -07:00
parent fde266860e
commit 11993b59ca

View file

@ -141,9 +141,9 @@ echo Building in $SRC, installing in $INSTALL_ROOT
if [ ! -z $CMAKE_PREFIX_PATH ] ; then if [ ! -z $CMAKE_PREFIX_PATH ] ; then
QMAKE=$CMAKE_PREFIX_PATH/../../bin/qmake QMAKE=$CMAKE_PREFIX_PATH/../../bin/qmake
else else
hash qmake > /dev/null && QMAKE=qmake hash qmake > /dev/null 2> /dev/null && QMAKE=qmake
[ -z $QMAKE ] && hash qmake-qt5 > /dev/null && QMAKE=qmake-qt5 [ -z $QMAKE ] && hash qmake-qt5 > /dev/null 2> /dev/null && QMAKE=qmake-qt5
[ -z $QMAKE ] && echo "cannot find qmake" && exit 1 [ -z $QMAKE ] && echo "cannot find qmake or qmake-qt5" && exit 1
fi fi
# on Debian and Ubuntu based systems, the private QtLocation and # on Debian and Ubuntu based systems, the private QtLocation and