mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 09:41:39 +08:00
[mongo-c-driver] Fix for custom VCPKG_BUILD_TYPE (#18569)
* Fix mongo-c-driver for custom VCPKG_BUILD_TYPE * Update version * Update ports/mongo-c-driver/portfile.cmake * Update versions/m-/mongo-c-driver.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Billy Robert ONeal III <bion@microsoft.com>
This commit is contained in:
parent
d93cf33a22
commit
9e104306a7
@ -1,6 +1,6 @@
|
||||
Source: mongo-c-driver
|
||||
Version: 1.16.1
|
||||
Port-Version: 4
|
||||
Port-Version: 5
|
||||
Build-Depends: libbson, openssl (!windows), zlib
|
||||
Description: Client library written in C for MongoDB.
|
||||
Homepage: https://github.com/mongodb/mongo-c-driver
|
||||
|
@ -85,20 +85,28 @@ file(RENAME ${CURRENT_PACKAGES_DIR}/temp ${CURRENT_PACKAGES_DIR}/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_TARGET_IS_UWP)
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/lib/libmongoc-static-1.0.a
|
||||
${CURRENT_PACKAGES_DIR}/lib/libmongoc-1.0.a)
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/libmongoc-static-1.0.a
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/libmongoc-1.0.a)
|
||||
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/lib/libmongoc-static-1.0.a
|
||||
${CURRENT_PACKAGES_DIR}/lib/libmongoc-1.0.a)
|
||||
endif()
|
||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/libmongoc-static-1.0.a
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/libmongoc-1.0.a)
|
||||
endif()
|
||||
else()
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/lib/mongoc-static-1.0.lib
|
||||
${CURRENT_PACKAGES_DIR}/lib/mongoc-1.0.lib)
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/mongoc-static-1.0.lib
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/mongoc-1.0.lib)
|
||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/lib/mongoc-static-1.0.lib
|
||||
${CURRENT_PACKAGES_DIR}/lib/mongoc-1.0.lib)
|
||||
endif()
|
||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
||||
file(RENAME
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/mongoc-static-1.0.lib
|
||||
${CURRENT_PACKAGES_DIR}/debug/lib/mongoc-1.0.lib)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# drop the __declspec(dllimport) when building static
|
||||
|
@ -4078,7 +4078,7 @@
|
||||
},
|
||||
"mongo-c-driver": {
|
||||
"baseline": "1.16.1",
|
||||
"port-version": 4
|
||||
"port-version": 5
|
||||
},
|
||||
"mongo-cxx-driver": {
|
||||
"baseline": "3.4.0-5",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "6a68782eaa1afe2fc3de47db769e230ebd542ca7",
|
||||
"version-string": "1.16.1",
|
||||
"port-version": 5
|
||||
},
|
||||
{
|
||||
"git-tree": "6b948f7f7ff67f47481c2630ba40ab300bceee01",
|
||||
"version-string": "1.16.1",
|
||||
|
Loading…
Reference in New Issue
Block a user