From 2fc5de88bd5331da30325aa55b1ef4e9526ccb99 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 26 Aug 2021 09:36:49 +0100 Subject: [PATCH] cmake: define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT for Signed-off-by: Kefu Chai Origin: upstream, https://github.com/ceph/ceph/commit/3d708219092d0e89a1434c30ffc8a4999f062cc0.patch Bug-Debian: https://bugs.debian.org/977243 Last-Update: 2021-03-24 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3cfe2775a..d03fe93f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,9 @@ endif() if(POLICY CMP0051) cmake_policy(SET CMP0051 NEW) endif() +if(POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) +endif() if(POLICY CMP0075) cmake_policy(SET CMP0075 NEW) endif() -- 2.30.2