Simplier way to get QT_VERSION

Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Cristian Ionescu-Idbohrn 2018-05-12 18:35:43 +02:00 committed by Lubomir I. Ivanov
parent cef6dff762
commit aa96aa3ac3

View file

@ -152,7 +152,7 @@ fi
# QtPositioning headers aren't bundled. Download them if necessary.
if [ $PLATFORM = Linux ] ; then
QT_HEADERS_PATH=`$QMAKE -query QT_INSTALL_HEADERS`
QT_VERSION=`$QMAKE -v | grep "Qt" | cut -d" " -f4`
QT_VERSION=`$QMAKE -query QT_VERSION`
if [ ! -d "$QT_HEADERS_PATH/QtLocation/$QT_VERSION/QtLocation/private" ] &&
[ ! -d $INSTALL_ROOT/include/QtLocation/private ] ; then