vcpkg/ports/mongo-cxx-driver/fix-dependencies.patch
双草酸酯 2b7370d1c0
[mongo-cxx-driver] Update port to v3.8.0 (#33209)
* [libbjson] update port to v1.24.3

* update version

* [libbson] add patch

* update version

* [mongo-c-driver] update port to v1.24.3

* update hash

* [mongo-cxx-driver] update port to r3.8.0

* update hash
2023-08-17 12:56:00 -07:00

15 lines
606 B
Diff

diff --git a/src/bsoncxx/CMakeLists.txt b/src/bsoncxx/CMakeLists.txt
index f30aea836..50610ffb1 100644
--- a/src/bsoncxx/CMakeLists.txt
+++ b/src/bsoncxx/CMakeLists.txt
@@ -215,6 +215,9 @@ if(BSONCXX_BUILD_STATIC)
bsoncxx_install_deprecated_cmake(bsoncxx-static)
list(APPEND bsoncxx_target_list bsoncxx_static)
set(bsoncxx_pkg_dep "find_dependency(bson-1.0 REQUIRED)")
+ if(BSONCXX_POLY_USE_BOOST)
+ string(APPEND bsoncxx_pkg_dep "\nfind_dependency(Boost)")
+ endif()
endif()
if(BSONCXX_POLY_USE_BOOST)
set(bsoncxx_boost_pkg_dep "find_dependency(Boost 1.56.0 REQUIRED)")