Commit 4ece6d16 authored by A. Jesse Jiryu Davis's avatar A. Jesse Jiryu Davis
Browse files

CDRIVER-2083 set BSON_STATIC_LIBRARIES for CMake

When a CMake project links to libbson statically it should do:

find_package (libbson-static-1.0)

With this change, the above command now sets BSON_STATIC_LIBRARIES, not
BSON_LIBRARIES, so a CMake project can now link some of its targets to
libbson statically and some dynamically.

Also, define BSON_STATIC when building the libbson static library. This
avoids marking libbson's public functions for dynamic-library export
when building libbson's static lib. It probably has no effect either
way but seems like the logical thing to do.
parent b4b9c8bf
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment