Created
November 26, 2018 16:54
-
-
Save gbschenkel/f2687d047e479b2f581a3d9adbbbb6df to your computer and use it in GitHub Desktop.
Script for compile Mongo CXX Driver on MSYS2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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