[mongo-c-driver] Disable snappy auto-detection (#7338)

* [mongo-c-driver] Disable snappy auto-detection to fix flakiness in mongo-cxx-driver

* [mongo-c-driver] Fix build version
This commit is contained in:
Victor Romero 2019-07-19 14:01:54 -07:00 committed by GitHub
parent 6bca08bbe9
commit f700dee8eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -3,3 +3,7 @@ Version: 1.14.0-3
Build-Depends: libbson, openssl (!windows), zlib
Description: Client library written in C for MongoDB.
Homepage: https://github.com/mongodb/mongo-c-driver
Feature: snappy
Description: Enables snappy compressor support
Build-Depends: snappy

View File

@ -10,6 +10,10 @@ vcpkg_from_github(
PATCHES fix-uwp.patch
)
vcpkg_check_features(
"snappy" MONGO_ENABLE_SNAPPY
)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
set(ENABLE_STATIC ON)
else()
@ -34,6 +38,7 @@ vcpkg_configure_cmake(
-DENABLE_SSL=${ENABLE_SSL}
-DENABLE_ZLIB=SYSTEM
-DENABLE_STATIC=${ENABLE_STATIC}
-DENABLE_SNAPPY=${MONGO_ENABLE_SNAPPY}
-DBUILD_VERSION=${BUILD_VERSION}
)