Skip to content

Commit

Permalink
[vcpkg baseline][mongo-c-driver] Fix the race condition during CMake …
Browse files Browse the repository at this point in the history
…configure (microsoft#36099)

* [vcpkg baseline][mongo-c-driver] Fix the race condition during CMake configure

* update version

* update fix

* update version
  • Loading branch information
LilyWangLL authored and TomKatom committed Feb 23, 2024
1 parent ffc2fe6 commit 6f6fb3e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ports/mongo-c-driver/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This port needs to be updated at the same time as libbson

vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mongodb/mongo-c-driver
Expand Down Expand Up @@ -45,6 +42,7 @@ endif()

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
${OPTIONS}
"-DBUILD_VERSION=${VERSION}"
Expand All @@ -56,6 +54,8 @@ vcpkg_cmake_configure(
-DENABLE_UNINSTALL=OFF
-DENABLE_ZLIB=SYSTEM
-DVCPKG_HOST_TRIPLET=${HOST_TRIPLET} # for host pkgconf in PATH
-DCMAKE_DISABLE_FIND_PACKAGE_Python=ON
-DCMAKE_DISABLE_FIND_PACKAGE_Python3=ON
MAYBE_UNUSED_VARIABLES
ENABLE_ICU
)
Expand Down
1 change: 1 addition & 0 deletions ports/mongo-c-driver/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "mongo-c-driver",
"version": "1.25.4",
"port-version": 1,
"description": "Client library written in C for MongoDB.",
"homepage": "https://github.com/mongodb/mongo-c-driver",
"license": null,
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5678,7 +5678,7 @@
},
"mongo-c-driver": {
"baseline": "1.25.4",
"port-version": 0
"port-version": 1
},
"mongo-cxx-driver": {
"baseline": "3.9.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/m-/mongo-c-driver.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7a6dfbb8124275c3987495969f7f79e5a7023b74",
"version": "1.25.4",
"port-version": 1
},
{
"git-tree": "219d51be972af0596a2c538b530fc379d136fcb2",
"version": "1.25.4",
Expand Down

0 comments on commit 6f6fb3e

Please sign in to comment.