1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2025-03-02 18:27:58 +01:00

package.sh: Don't pass -B option to cmake

Older versions of cmake don't support this.
This commit is contained in:
Tom Stellard 2021-06-06 10:08:19 -07:00
parent e2aa29cf47
commit bc4a6ded85

View File

@ -2,7 +2,7 @@
set -ex
srcdir=$1
srcdir=`realpath $1`
version="2.3.3"
@ -12,13 +12,20 @@ fi
builddir=./build-$version
installdir=./bygfoot-$version
installdir_abs=`realpath $installdir`
mkdir -p $builddir
mkdir -p $installdir
cmake -G Ninja -B $builddir -S $srcdir -DCMAKE_INSTALL_PREFIX=$installdir -DCMAKE_C_FLAGS=-DVERS=\"\\\"$version\\\"\"
# Don't use the -B option here, because some older versions of
# cmake don't support it.
pushd $builddir
cmake -G Ninja -S $srcdir -DCMAKE_INSTALL_PREFIX=$installdir_abs -DCMAKE_C_FLAGS=-DVERS=\"\\\"$version\\\"\"
popd
ninja -v -C $builddir install
# Fixup install dir so that bygfoot can find the support
# files.