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
The only thing in RGW that should depend on Boost (::coroutine, ::context) libraries is the boost/asio/spawn.hpp header used by rgw_asio_frontend.cc Use the target_link_libraries(<target> <item>...) [1] 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] 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> (cherry picked from commit 34d0a30)
- Loading branch information