mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 01:30:55 +08:00
[Mongo-c-driver] remove compiler abs path (#42731)
This commit is contained in:
parent
83ee120b22
commit
d00bfc5a86
@ -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")
|
||||
|
13
ports/mongo-c-driver/remove_abs_patch.cmake
Normal file
13
ports/mongo-c-driver/remove_abs_patch.cmake
Normal 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})
|
||||
|
@ -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,
|
||||
|
@ -6038,7 +6038,7 @@
|
||||
},
|
||||
"mongo-c-driver": {
|
||||
"baseline": "1.29.1",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"mongo-cxx-driver": {
|
||||
"baseline": "3.11.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "f9943a1e42f7e9c6e4abdde3ae62a31bbee43c1f",
|
||||
"version": "1.29.1",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "57c165af3c3c82c0f1f05f0f9e9e90af1fb68b50",
|
||||
"version": "1.29.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user