aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-04-06 10:24:38 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-04-06 10:24:38 -0700
commit629e034c380c576fd6fa98bc0c90a49c39d7528b (patch)
tree051261ae9618b2d40a7e868810f16ce3aa2ed4e7
parent4765c5853c45d7b0a8dde3f868b4d52fec984af4 (diff)
downloadvcpkg-629e034c380c576fd6fa98bc0c90a49c39d7528b.tar.gz
vcpkg-629e034c380c576fd6fa98bc0c90a49c39d7528b.zip
[libbson] Install THIRD_PARTY_NOTICES. Install PDBS.
-rw-r--r--ports/libbson/CONTROL2
-rw-r--r--ports/libbson/portfile.cmake7
2 files changed, 7 insertions, 2 deletions
diff --git a/ports/libbson/CONTROL b/ports/libbson/CONTROL
index 1bf86bf74..7ad8cb25b 100644
--- a/ports/libbson/CONTROL
+++ b/ports/libbson/CONTROL
@@ -1,3 +1,3 @@
Source: libbson
-Version: 1.5.1-1
+Version: 1.5.1-3
Description: libbson is a library providing useful routines related to building, parsing, and iterating BSON documents. \ No newline at end of file
diff --git a/ports/libbson/portfile.cmake b/ports/libbson/portfile.cmake
index bcf66872d..1292dd9a3 100644
--- a/ports/libbson/portfile.cmake
+++ b/ports/libbson/portfile.cmake
@@ -29,6 +29,8 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
+# This rename is needed because the official examples expect to use #include <bson.h>
+# See Microsoft/vcpkg#904
file(RENAME
${CURRENT_PACKAGES_DIR}/include/libbson-1.0
${CURRENT_PACKAGES_DIR}/temp)
@@ -53,4 +55,7 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
)
endif()
-file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libbson RENAME copyright) \ No newline at end of file
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libbson RENAME copyright)
+file(COPY ${SOURCE_PATH}/THIRD_PARTY_NOTICES DESTINATION ${CURRENT_PACKAGES_DIR}/share/libbson)
+
+vcpkg_copy_pdbs() \ No newline at end of file