Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<IF:$<TARGET_EXISTS:bson::static>,bson::static,bson::shared>)
Expand Down
14 changes: 7 additions & 7 deletions reflectcpp-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

Expand Down
Loading