Skip to content

Commit 5b91ef0

Browse files
Inject our own project as the mongoc source for building libmongocrypt (#1059)
libmongocrypt needs a copy of mongo-c-driver to build a libbson for itself. We are already such a mongo-c-driver, so send that to the libmongocrypt sub-build.
1 parent 8761de4 commit 5b91ef0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.evergreen/compile-unix.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ echo "ZSTD: $ZSTD"
6363
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
6464
echo "OS: $OS"
6565

66+
# Assume we are running in the mongo-c-driver source root directory
67+
MONGOC_DIR="$PWD"
68+
6669
# Since zstd inconsitently installed on macos-1014.
6770
# Remove this check in CDRIVER-3483.
6871
if [ "darwin" = "$OS" ]; then
@@ -234,7 +237,9 @@ if [ "$COMPILE_LIBMONGOCRYPT" = "ON" ]; then
234237

235238
mkdir libmongocrypt/cmake-build
236239
cd libmongocrypt/cmake-build
237-
$CMAKE -DENABLE_SHARED_BSON=ON -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" -DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH" ../
240+
$CMAKE -DENABLE_SHARED_BSON=ON -DCMAKE_BUILD_TYPE="Debug" \
241+
-DMONGOCRYPT_MONGOC_DIR="$MONGOC_DIR" -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" \
242+
-DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH" -DBUILD_TESTING=OFF ../
238243
make install
239244
cd ../../
240245
else

0 commit comments

Comments
 (0)