From ac72ca4ae6ee83bc561ca819e0aef7763c754e5d Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 15 Feb 2019 13:32:55 +0100 Subject: [PATCH] Don't warn that Boost.Coroutine v1 is deprecated --- CMakeLists.txt | 5 +++++ lib/base/io-engine.hpp | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a3ee2e503..2b53844fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,6 +134,11 @@ endif() find_package(Boost ${BOOST_MIN_VERSION} COMPONENTS context coroutine date_time thread system program_options regex REQUIRED) +# Boost.Coroutine2 (the successor of Boost.Coroutine) +# (1) doesn't even exist in old Boost versions and +# (2) isn't supported by ASIO, yet. +add_definitions(-DBOOST_COROUTINES_NO_DEPRECATION_WARNING) + link_directories(${Boost_LIBRARY_DIRS}) include_directories(${Boost_INCLUDE_DIRS}) diff --git a/lib/base/io-engine.hpp b/lib/base/io-engine.hpp index ada80d1ca..e383b2e42 100644 --- a/lib/base/io-engine.hpp +++ b/lib/base/io-engine.hpp @@ -20,13 +20,6 @@ #ifndef IO_ENGINE_H #define IO_ENGINE_H -/** - * Boost.Coroutine2 (the successor of Boost.Coroutine) - * (1) doesn't even exist in old Boost versions and - * (2) isn't supported by ASIO, yet. - */ -#define BOOST_COROUTINES_NO_DEPRECATION_WARNING 1 - #include "base/lazy-init.hpp" #include #include -- 2.40.0