aboutsummaryrefslogtreecommitdiff
path: root/ports/libbson
diff options
context:
space:
mode:
authorsdcb <sdflysha@qq.com>2016-11-21 13:51:48 +0800
committersdcb <sdflysha@qq.com>2016-11-21 13:51:48 +0800
commitb63d35b10ba2cc0b0569c7a18509fb71ff6f6ca5 (patch)
tree27124024eaaa004cb6e395a25d5821be60858c3d /ports/libbson
parent51a9334d1b16cf00f3e547eb9e6b162ac34c526e (diff)
downloadvcpkg-b63d35b10ba2cc0b0569c7a18509fb71ff6f6ca5.tar.gz
vcpkg-b63d35b10ba2cc0b0569c7a18509fb71ff6f6ca5.zip
[mongo-c-driver] Upgrade to 1.5.0-rc6
Enable building static library. Exclude test and examples.
Diffstat (limited to 'ports/libbson')
-rw-r--r--ports/libbson/portfile.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/ports/libbson/portfile.cmake b/ports/libbson/portfile.cmake
index 4f8dc0e25..7642c3437 100644
--- a/ports/libbson/portfile.cmake
+++ b/ports/libbson/portfile.cmake
@@ -31,6 +31,13 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/bson-1.0.lib)
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/bson-1.0.lib)
+ file(RENAME
+ ${CURRENT_PACKAGES_DIR}/lib/bson-static-1.0.lib
+ ${CURRENT_PACKAGES_DIR}/lib/bson-1.0.lib)
+ file(RENAME
+ ${CURRENT_PACKAGES_DIR}/debug/lib/bson-static-1.0.lib
+ ${CURRENT_PACKAGES_DIR}/debug/lib/bson-1.0.lib)
+
# drop the __declspec(dllimport) when building static
vcpkg_apply_patches(
SOURCE_PATH ${CURRENT_PACKAGES_DIR}/include