Workaround for mingw build

This commit is contained in:
Andrea Giudiceandrea 2023-09-10 23:25:29 +02:00 committed by Nyall Dawson
parent 28c72ed9d0
commit 2805975ef0

View File

@ -76,7 +76,10 @@ mkdir -p "$BUILDDIR"
(
CRSSYNC_BIN=$(readlink -f "$SRCDIR")/build/output/bin/crssync
cd "$BUILDDIR"
mingw$bits-cmake \
rpm --eval "%{mingw64_cmake}" > mingw64-cmake.sh
sed -i -e 's/%__cmake/cmake/' mingw64-cmake.sh
chmod +x mingw64-cmake.sh
./mingw$bits-cmake.sh \
-DCMAKE_CROSS_COMPILING=1 \
-DUSE_CCACHE=ON \
-DCMAKE_BUILD_TYPE=$buildtype \