]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT for Boost.Asio users 38759/head
authorKefu Chai <kchai@redhat.com>
Tue, 24 Nov 2020 06:12:54 +0000 (14:12 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 4 Jan 2021 15:37:56 +0000 (23:37 +0800)
commit75d5f91784138565e594fedefc709c4bd5b22f26
tree69a65d0e151dcdb9ed3bbee1fedf30b172ea43a4
parent2eacca1efb80d3af604f7e9be47cd3ad5d9bc63e
cmake: define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT for 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").

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 3d708219092d0e89a1434c30ffc8a4999f062cc0)

Conflicts:
CMakeLists.txt
src/librbd/CMakeLists.txt: trivial resolutions
CMakeLists.txt
src/librbd/CMakeLists.txt