[Mongo-c-driver] remove compiler abs path (#42731)

This commit is contained in:
Alexander Neumann 2024-12-16 18:05:45 +01:00 committed by GitHub
parent 83ee120b22
commit d00bfc5a86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 1 deletions

View File

@ -10,6 +10,7 @@ vcpkg_from_github(
fix-dependencies.patch
fix-include-directory.patch
fix-mingw.patch
remove_abs_patch.cmake
)
file(WRITE "${SOURCE_PATH}/VERSION_CURRENT" "${VERSION}")
file(TOUCH "${SOURCE_PATH}/src/utf8proc-editable")

View File

@ -0,0 +1,13 @@
diff --git a/src/libmongoc/CMakeLists.txt b/src/libmongoc/CMakeLists.txt
index 6e295d68fb..54ab225ba7 100644
--- a/src/libmongoc/CMakeLists.txt
+++ b/src/libmongoc/CMakeLists.txt
@@ -474,7 +474,7 @@ if (NOT WIN32)
mongoc_get_accept_args (MONGOC_SOCKET_ARG2 MONGOC_SOCKET_ARG3)
endif ()
-set (MONGOC_CC ${CMAKE_C_COMPILER})
+cmake_path(GET CMAKE_C_COMPILER FILENAME MONGOC_CC)
set (MONGOC_USER_SET_CFLAGS ${CMAKE_C_FLAGS})
set (MONGOC_USER_SET_LDFLAGS ${CMAKE_EXE_LINKER_FLAGS})

View File

@ -1,6 +1,7 @@
{
"name": "mongo-c-driver",
"version": "1.29.1",
"port-version": 1,
"description": "Client library written in C for MongoDB.",
"homepage": "https://github.com/mongodb/mongo-c-driver",
"license": null,

View File

@ -6038,7 +6038,7 @@
},
"mongo-c-driver": {
"baseline": "1.29.1",
"port-version": 0
"port-version": 1
},
"mongo-cxx-driver": {
"baseline": "3.11.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f9943a1e42f7e9c6e4abdde3ae62a31bbee43c1f",
"version": "1.29.1",
"port-version": 1
},
{
"git-tree": "57c165af3c3c82c0f1f05f0f9e9e90af1fb68b50",
"version": "1.29.1",