From e9501fa0d0d8d706209b8ca7fc011ecb0deb18bf Mon Sep 17 00:00:00 2001 From: "Dr. Patrick Urbanke" Date: Sun, 18 Oct 2026 23:08:01 +0200 Subject: [PATCH] Fix the links to the BSON dependencies --- CMakeLists.txt | 2 +- reflectcpp-config.cmake.in | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9498f9d84..b7be62c49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -320,7 +320,7 @@ if (REFLECTCPP_BSON OR REFLECTCPP_CHECK_HEADERS) list(APPEND REFLECT_CPP_SOURCES src/reflectcpp_bson.cpp ) - if (NOT TARGET mongo::bson_static AND NOT TARGET mongo::bson_shared) + if (NOT TARGET bson::static AND NOT TARGET bson::shared) find_package(bson CONFIG REQUIRED) endif () target_link_libraries(reflectcpp PRIVATE $,bson::static,bson::shared>) diff --git a/reflectcpp-config.cmake.in b/reflectcpp-config.cmake.in index a1ba06899..6562aafd4 100644 --- a/reflectcpp-config.cmake.in +++ b/reflectcpp-config.cmake.in @@ -28,26 +28,26 @@ if (NOT REFLECTCPP_USE_BUNDLED_DEPENDENCIES) endif() if ((REFLECTCPP_JSON OR REFLECTCPP_AVRO OR REFLECTCPP_CBOR OR REFLECTCPP_UBJSON) AND NOT REFLECTCPP_USE_BUNDLED_DEPENDENCIES) - find_dependency(yyjson) + find_dependency(yyjson) endif() -if (REFLECTCPP_BOOST_SERIALIZATION) +if (REFLECTCPP_BOOST_SERIALIZATION) find_dependency(Boost COMPONENTS serialization) endif () -if (REFLECTCPP_BSON) - find_dependency(bson-1.0) +if (REFLECTCPP_BSON) + find_dependency(bson) endif () -if (REFLECTCPP_CAPNPROTO) +if (REFLECTCPP_CAPNPROTO) find_dependency(CapnProto) endif () -if (REFLECTCPP_CBOR OR REFLECTCPP_UBJSON) +if (REFLECTCPP_CBOR OR REFLECTCPP_UBJSON) find_dependency(jsoncons) endif () -if (REFLECTCPP_CEREAL) +if (REFLECTCPP_CEREAL) find_dependency(cereal) endif ()