mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
build script: remove the long outdated Qt detection
We now require qmake to be found much earlier in the script so we can simply use that to get the right prefix path. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2a6fe54ac3
commit
4fb99680f3
1 changed files with 2 additions and 16 deletions
|
@ -472,26 +472,12 @@ STATIC_LIBDC="$INSTALL_ROOT/$(grep ^libdir Makefile | cut -d/ -f2)/libdivecomput
|
||||||
|
|
||||||
if [ "$PLATFORM" = Darwin ] ; then
|
if [ "$PLATFORM" = Darwin ] ; then
|
||||||
if [ -z "$CMAKE_PREFIX_PATH" ] ; then
|
if [ -z "$CMAKE_PREFIX_PATH" ] ; then
|
||||||
|
# we already found qmake and can get the right path information from that
|
||||||
libdir=$($QMAKE -query QT_INSTALL_LIBS)
|
libdir=$($QMAKE -query QT_INSTALL_LIBS)
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
export CMAKE_PREFIX_PATH=$libdir/cmake
|
export CMAKE_PREFIX_PATH=$libdir/cmake
|
||||||
elif [ -d "$HOME/Qt/5.9.1" ] ; then
|
|
||||||
export CMAKE_PREFIX_PATH=~/Qt/5.9.1/clang_64/lib/cmake
|
|
||||||
elif [ -d "$HOME/Qt/5.9" ] ; then
|
|
||||||
export CMAKE_PREFIX_PATH=~/Qt/5.9/clang_64/lib/cmake
|
|
||||||
elif [ -d "$HOME/Qt/5.8" ] ; then
|
|
||||||
export CMAKE_PREFIX_PATH=~/Qt/5.8/clang_64/lib/cmake
|
|
||||||
elif [ -d "$HOME/Qt/5.7" ] ; then
|
|
||||||
export CMAKE_PREFIX_PATH=~/Qt/5.7/clang_64/lib/cmake
|
|
||||||
elif [ -d "$HOME/Qt/5.6" ] ; then
|
|
||||||
export CMAKE_PREFIX_PATH=~/Qt/5.6/clang_64/lib/cmake
|
|
||||||
elif [ -d "$HOME/Qt/5.5" ] ; then
|
|
||||||
export CMAKE_PREFIX_PATH=~/Qt/5.5/clang_64/lib/cmake
|
|
||||||
elif [ -d /usr/local/opt/qt5/lib ] ; then
|
|
||||||
# Homebrew location for qt5 package
|
|
||||||
export CMAKE_PREFIX_PATH=/usr/local/opt/qt5/lib/cmake
|
|
||||||
else
|
else
|
||||||
echo "cannot find Qt 5.5 or newer in ~/Qt"
|
echo "something is broken with the Qt install"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue