Skip to content
Snippets Groups Projects
Commit 3858e0f7 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

switch to mongo-c 1.15

parent 885ba414
No related branches found
No related tags found
No related merge requests found
:: download and untar mongoc driver sources to dir
:: https://github.com/mongodb/mongo-c-driver/releases/download/1.9.0/mongo-c-driver-1.9.0.tar.gz
:: https://github.com/mongodb/mongo-c-driver/releases/download/1.15.2/mongo-c-driver-1.15.2.tar.gz
:: set directory with mongoc driver sources
SET dir=c:\tmp\mongo-c-driver-1.9.0
SET dir=c:\tmp\mongo-c-driver-1.15.2
set mypath=%cd%
cd /d %dir%
......
#!/usr/bin/env bash
cd $1
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.9.0/mongo-c-driver-1.9.0.tar.gz
tar xzf mongo-c-driver-1.9.0.tar.gz
cd mongo-c-driver-1.9.0
./configure --disable-automatic-init-and-cleanup --enable-static=yes --enable-shared=no --enable-examples=no --enable-ssl=no --enable-sasl=no
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.15.2/mongo-c-driver-1.15.2.tar.gz
tar xzf mongo-c-driver-1.15.2.tar.gz
cd mongo-c-driver-1.15.2
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_SSL=OFF -DENABLE_SASL=OFF -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF -DMONGOC_ENABLE_STATIC=ON .
make
#sudo make install
......
......@@ -6,7 +6,7 @@ set(SOURCE_FILES
################################
# Library
################################
find_package (libmongoc-static-1.0 1.9 REQUIRED)
find_package (libmongoc-static-1.0 1.15 REQUIRED)
message ("-- mongoc found version \"${MONGOC_STATIC_VERSION}\"")
message ("-- mongoc include path \"${MONGOC_STATIC_INCLUDE_DIRS}\"")
message ("-- mongoc libraries \"${MONGOC_STATIC_LIBRARIES}\"")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment