vcpkg/ports/mongo-cxx-driver/fix-dependencies.patch
Kai Pastor e819a7d0ae
[mongo-cxx-driver] Update (#27565)
* Update and cleanup

* Fix C++14 guard for MSVC

* Force mongo-cxx-driver feature boost in CI
2022-11-21 09:19:31 -08:00

15 lines
567 B
Diff

diff --git a/src/bsoncxx/CMakeLists.txt b/src/bsoncxx/CMakeLists.txt
index d87d588..16ba095 100644
--- a/src/bsoncxx/CMakeLists.txt
+++ b/src/bsoncxx/CMakeLists.txt
@@ -218,6 +221,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()
bsoncxx_install("${bsoncxx_target_list}" "${bsoncxx_pkg_dep}")