Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: do not link against boost in a wholesale (#3)
With the new Beast frontend, RGW now has a small Boost dependency [1] which was being addressed by statically (and unconditionally) linking *all* the Boost libraries. This patch ensures that only the necessary Boost components are linked. We use the target_link_libraries(<target> <item>...) [2] syntax to ensure that the library dependencies are transitive: i.e. "when this target is linked into another target then the libraries linked to this target will appear on the link line for the other target too." [1] The boost/asio/spawn.hpp header used by rgw_asio_frontend.cc depends on boost::coroutine/boost::context [2] https://cmake.org/cmake/help/v3.3/command/target_link_libraries.html#libraries-for-both-a-target-and-its-dependents Signed-off-by: Nathan Cutler <ncutler@suse.com> Signed-off-by: Kefu Chai <kchai@redhat.com>
- Loading branch information