diff --git a/CMakeLists.txt b/CMakeLists.txt index 9498f9d8..b7be62c4 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 a1ba0689..6562aafd 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 ()