cmake: define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT for
authorKefu Chai <kchai@redhat.com>
Fri, 15 Jan 2021 11:26:14 +0000 (11:26 +0000)
committerThomas Goirand <zigo@debian.org>
Fri, 15 Jan 2021 11:26:14 +0000 (11:26 +0000)
commit93023700e9873396333d51a1bb0699b94da65bfa
tree2b810bb9906000f8ba6fd9a14160d9f036e2984e
parent56edbd6bafccec13cd1a0b103376b91f34569472
cmake: define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT for

Signed-off-by: Kefu Chai <kchai@redhat.com>
Origin: upstream, https://github.com/ceph/ceph/commit/3d708219092d0e89a1434c30ffc8a4999f062cc0.patch
Bug-Debian: https://bugs.debian.org/977243
Last-Update: 2020-12-13

Boost.Asio users

see also
https://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/std_executors.html#boost_asio.std_executors.polymorphic_i_o_executor

we could use `asio::any_io_executor` later on though for better
performance.

also, define CMP0093, so FindBoost reports Boost_VERSION in x.y.z
format. it is simpler to use `VERSION_GREATER_EQUAL` to compare its
version with 1.74 instead of its C macro version ("107000").

Gbp-Pq: Name cmake_define_BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT_for_Boost.Asio_users.patch
CMakeLists.txt
src/librbd/CMakeLists.txt