Skip to content

Instantly share code, notes, and snippets.

@gbschenkel
Created November 26, 2018 15:12
Show Gist options
  • Save gbschenkel/5d246470bb0f8b734cd0bf705202a6b8 to your computer and use it in GitHub Desktop.
Save gbschenkel/5d246470bb0f8b734cd0bf705202a6b8 to your computer and use it in GitHub Desktop.
Script for compile Mongo C Driver on MSYS2
#!/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