vcpkg/ports/libbson/usage

5 lines
200 B
Plaintext
Raw Normal View History

libbson provides CMake targets:
find_package(bson-1.0 CONFIG REQUIRED)
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:mongo::bson_static>,mongo::bson_static,mongo::bson_shared>)