mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[mongo-cxx-driver] Fix UWP builds. Deploy THIRD-PARTY-NOTICES.
This commit is contained in:
parent
0163b19e32
commit
e7ad48b0b8
@ -1,4 +1,4 @@
|
||||
Source: mongo-cxx-driver
|
||||
Version: 3.0.3-1
|
||||
Build-Depends: boost,libbson,mongo-c-driver
|
||||
Version: 3.0.3-2
|
||||
Build-Depends: boost, libbson, mongo-c-driver
|
||||
Description: MongoDB C++ Driver.
|
11
ports/mongo-cxx-driver/fix-uwp.patch
Normal file
11
ports/mongo-cxx-driver/fix-uwp.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 40cd480..08cd37f 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -13,5 +13,6 @@
|
||||
# limitations under the License.
|
||||
|
||||
add_definitions(-DMONGO_CXX_DRIVER_COMPILING)
|
||||
+add_definitions(-D_SCL_SECURE_NO_WARNINGS)
|
||||
add_subdirectory(bsoncxx)
|
||||
add_subdirectory(mongocxx)
|
@ -13,6 +13,7 @@ vcpkg_apply_patches(
|
||||
PATCHES
|
||||
${CMAKE_CURRENT_LIST_DIR}/disable_test_and_example.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/disable_shared.patch
|
||||
${CMAKE_CURRENT_LIST_DIR}/fix-uwp.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
@ -85,4 +86,7 @@ else()
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/libmongocxx.lib)
|
||||
endif()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/mongo-cxx-driver RENAME copyright)
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/mongo-cxx-driver RENAME copyright)
|
||||
file(COPY ${SOURCE_PATH}/THIRD-PARTY-NOTICES DESTINATION ${CURRENT_PACKAGES_DIR}/share/mongo-cxx-driver)
|
||||
|
||||
vcpkg_copy_pdbs()
|
Loading…
x
Reference in New Issue
Block a user