Skip to content

Instantly share code, notes, and snippets.

@gbschenkel
Created November 26, 2018 16:54
Show Gist options
  • Save gbschenkel/f2687d047e479b2f581a3d9adbbbb6df to your computer and use it in GitHub Desktop.
Save gbschenkel/f2687d047e479b2f581a3d9adbbbb6df to your computer and use it in GitHub Desktop.
Script for compile Mongo CXX Driver on MSYS2
#!/bin/bash
CWD=$(pwd)
CMA="cmake-build"
cd mongo-cxx-driver
if [ ! -d $CMA ]; then
mkdir $CMA
fi
cd $CMA
cmake -DCMAKE_BUILD_TYPE=Release -DBSONCXX_POLY_USE_BOOST=1 -G 'MSYS Makefiles' -DCMAKE_INSTALL_PREFIX=/mingw64 ..
mingw32-make.exe
mingw32-make.exe install
cd $CWD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment