mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Build libzip with cmake when cross building for Windows
This seems to fix our issues with being able to create zip files on the fly (needed for the divelogs.de access). Fixes #955 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
755ecf607a
commit
c6ec742d11
1 changed files with 3 additions and 4 deletions
|
@ -224,10 +224,9 @@ if [[ ! -d libzip || -f build.libzip ]] ; then
|
|||
rm -f build.libzip
|
||||
mkdir -p libzip
|
||||
cd libzip
|
||||
# cmake -DCMAKE_TOOLCHAIN_FILE="$BASEDIR"/mxe/usr/i686-w64-mingw32.shared/share/cmake/mxe-conf.cmake \
|
||||
# -DCMAKE_BUILD_TYPE=Release \
|
||||
# "$BASEDIR"/libzip
|
||||
"$BASEDIR"/libzip/configure --host=i686-w64-mingw32.shared --prefix="$BASEDIR"/mxe/usr/i686-w64-mingw32.shared
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE=$BASEDIR/mxe/usr/i686-w64-mingw32.shared/share/cmake/mxe-conf.cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
$BASEDIR/libzip
|
||||
make $JOBS
|
||||
make install
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue