Created
November 26, 2018 15:12
-
-
Save gbschenkel/5d246470bb0f8b734cd0bf705202a6b8 to your computer and use it in GitHub Desktop.
Script for compile Mongo C 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-c-driver | |
if [ ! -d $CMA ]; then | |
mkdir $CMA | |
fi | |
cd $CMA | |
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_BSON=ON -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF -DENABLE_STATIC=OFF -DENABLE_TESTS=OFF -G CodeBlocks - MinGW Makefiles -DCMAKE_INSTALL_PREFIX=/mingw64/ .. | |
mingw32-make | |
mingw32-make install | |
cd $CWD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment