Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jul 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions ports/mongo-c-driver/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions ports/mongo-c-driver/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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}
)

Expand Down