Sha256: dd2da812c994a392ed78d724d52222861be205af0a78ccde68df99a8b1a0adc1
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
include (FetchContent) # Set the tag that we will fetch. # When updating the version of libbson, also update the version in etc/purls.txt set (MONGOC_FETCH_TAG_FOR_LIBBSON "1.28.1" CACHE STRING "The Git tag of mongo-c-driver that will be fetched to obtain libbson") # Add an option to disable patching if a patch command is unavailable. option (LIBBSON_PATCH_ENABLED "Whether to apply patches to the libbson library" ON) set (patch_disabled OFF) if (NOT LIBBSON_PATCH_ENABLED) set (patch_disabled ON) endif () include (Patch) make_patch_command (patch_command STRIP_COMPONENTS 1 DIRECTORY "<SOURCE_DIR>" DISABLED "${patch_disabled}" PATCHES ${PROJECT_SOURCE_DIR}/etc/libbson-remove-GCC-diagnostic-pragma.patch ) # Fetch the source archive for the requested tag from GitHub FetchContent_Declare ( embedded_mcd URL "https://github.com/mongodb/mongo-c-driver/archive/refs/tags/${MONGOC_FETCH_TAG_FOR_LIBBSON}.tar.gz" PATCH_COMMAND ${patch_command} --verbose ) # Populate it: FetchContent_GetProperties (embedded_mcd) if (NOT embedded_mcd_POPULATED) message (STATUS "Downloading mongo-c-driver ${MONGOC_FETCH_TAG_FOR_LIBBSON} for libbson") FetchContent_Populate (embedded_mcd) endif () # Store the directory path to the external mongoc project: get_filename_component (MONGOCRYPT_MONGOC_DIR "${embedded_mcd_SOURCE_DIR}" ABSOLUTE) # The project wants a VERSION_CURRENT file. We know that based on the tag. file (WRITE "${embedded_mcd_SOURCE_DIR}/VERSION_CURRENT" "${MONGOC_FETCH_TAG_FOR_LIBBSON}")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libmongocrypt-helper-1.12.0.0.1001 | ext/libmongocrypt/libmongocrypt/cmake/FetchMongoC.cmake |