mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Build scripts: work with both Qt 5.5 and 5.6
This is all a bit hackish but seems to work Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
01ae4af13d
commit
2b1812f2cb
3 changed files with 19 additions and 3 deletions
|
@ -140,7 +140,14 @@ fi
|
|||
mkdir -p build
|
||||
cd build
|
||||
if [ $PLATFORM = Darwin ] ; then
|
||||
export CMAKE_PREFIX_PATH=~/Qt/5.5/clang_64/lib/cmake
|
||||
if [ -d "~/Qt/5.5" ] ; then
|
||||
export CMAKE_PREFIX_PATH=~/Qt/5.5/clang_64/lib/cmake
|
||||
elif [ -d "~/Qt/5.6" ] ; then
|
||||
export CMAKE_PREFIX_PATH=~/Qt/5.6/clang_64/lib/cmake
|
||||
else
|
||||
echo "cannot find Qt 5.5 or 5.6 in ~/Qt"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DQTONLY=TRUE -DQT5BUILD=ON \
|
||||
-DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue