diff --git a/3d_party/mongo-c-driver/install.cmd b/3d_party/mongo-c-driver/install.cmd index 1aef675599fa2960b20123a54ab9d88ac2bd8fb9..08a32ed8b3beb2d05b66a8005c772dc6a1f3025b 100644 --- a/3d_party/mongo-c-driver/install.cmd +++ b/3d_party/mongo-c-driver/install.cmd @@ -1,8 +1,8 @@ :: 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% diff --git a/3d_party/mongo-c-driver/install.sh b/3d_party/mongo-c-driver/install.sh index 33d1d5d8a87be513db430128f461da90cb405513..eba4e08f6b6e3ecc45f7e7e3075a63b9c93b0f89 100755 --- a/3d_party/mongo-c-driver/install.sh +++ b/3d_party/mongo-c-driver/install.sh @@ -1,10 +1,11 @@ #!/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 diff --git a/common/cpp/src/database/CMakeLists.txt b/common/cpp/src/database/CMakeLists.txt index 30ebedb96509db3002438899291c0a8a77fbc71e..261134f12893116d9577afb3db0d0a1eadac4bb5 100644 --- a/common/cpp/src/database/CMakeLists.txt +++ b/common/cpp/src/database/CMakeLists.txt @@ -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}\"")