Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: expose -DBOOST_TEST_DYN_LINK instead of -DBoost_TEST_DYN_LINK
before this change, we include `-DBoost_TEST_DYN_LINK` in seastar_testing_cflags. but this macro is not documented by Boost document, what we should use is `BOOST_TEST_DYN_LINK`, see https://www.boost.org/doc/libs/1_86_0/libs/test/doc/html/boost_test/utf_reference/link_references/link_boost_test_dyn_link.html the reason why the tests build, is that they - either link against `Boost::dynamic_linking` via Seastar's CMake building system - or pass `-DBOOST_ALL_DYN_LINK` by themselves but this not the intended usage. the tests should link against `seastar_testing` without worrying about this linkage or the definition. in this change, we correct the macro to the one documented. also, to be consistent with the CMake building system, where we link against `Boost::dynamic_linking`, we use a generator expression to extract the compile definitions from this library target instead of using the `BOOST_ALL_DYN_LINK` directly. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
- Loading branch information