Skip to content

Commit

Permalink
Next attempt to make it work
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzicheng1987 committed Jan 18, 2024
1 parent d0d8fcb commit af89951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ target_include_directories(reflectcpp PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include

if (REFLECTCPP_BSON)
find_package(bson-1.0 CONFIG REQUIRED)
target_link_libraries(reflectcpp INTERFACE mongo::bson_static)
target_link_libraries(reflectcpp PRIVATE $<IF:$<TARGET_EXISTS:mongo::bson_static>,mongo::bson_static,mongo::bson_shared>)
endif ()

if (REFLECTCPP_FLEXBUFFERS)
Expand Down

0 comments on commit af89951

Please sign in to comment.