diff options
| author | Victor Romero <romerosanchezv@gmail.com> | 2019-07-19 14:01:54 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-19 14:01:54 -0700 |
| commit | f700dee8eb4677d89d3919519613dee5e22c766e (patch) | |
| tree | dec0d00653b5f5ff948e6ece8bdc331f43ef7116 | |
| parent | 6bca08bbe989f6a960f83c94357b3bbf55e28dcf (diff) | |
| download | vcpkg-f700dee8eb4677d89d3919519613dee5e22c766e.tar.gz vcpkg-f700dee8eb4677d89d3919519613dee5e22c766e.zip | |
[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
| -rw-r--r-- | ports/mongo-c-driver/CONTROL | 4 | ||||
| -rw-r--r-- | ports/mongo-c-driver/portfile.cmake | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ports/mongo-c-driver/CONTROL b/ports/mongo-c-driver/CONTROL index 5d3b3a5f0..77a40437f 100644 --- a/ports/mongo-c-driver/CONTROL +++ b/ports/mongo-c-driver/CONTROL @@ -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 diff --git a/ports/mongo-c-driver/portfile.cmake b/ports/mongo-c-driver/portfile.cmake index f2b72fc08..40d1effa8 100644 --- a/ports/mongo-c-driver/portfile.cmake +++ b/ports/mongo-c-driver/portfile.cmake @@ -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}
)
|
