mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
Don't warn that Boost.Coroutine v1 is deprecated
This commit is contained in:
parent
7681ec10a4
commit
ac72ca4ae6
@ -134,6 +134,11 @@ endif()
|
|||||||
|
|
||||||
find_package(Boost ${BOOST_MIN_VERSION} COMPONENTS context coroutine date_time thread system program_options regex REQUIRED)
|
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})
|
link_directories(${Boost_LIBRARY_DIRS})
|
||||||
include_directories(${Boost_INCLUDE_DIRS})
|
include_directories(${Boost_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
@ -20,13 +20,6 @@
|
|||||||
#ifndef IO_ENGINE_H
|
#ifndef IO_ENGINE_H
|
||||||
#define 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 "base/lazy-init.hpp"
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user