From 629e034c380c576fd6fa98bc0c90a49c39d7528b Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Thu, 6 Apr 2017 10:24:38 -0700 Subject: [PATCH] [libbson] Install THIRD_PARTY_NOTICES. Install PDBS. --- ports/libbson/CONTROL | 2 +- ports/libbson/portfile.cmake | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ports/libbson/CONTROL b/ports/libbson/CONTROL index 1bf86bf744..7ad8cb25b7 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 bcf66872de..1292dd9a3a 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 +# 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