From d2f336fa13302cbce1812932609c53c8f14d4939 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Tue, 21 Dec 2021 21:15:36 +0000 Subject: [PATCH] Suppress some (internal) warnings from boost --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2fd054daf..360b2976e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -208,7 +208,8 @@ if (WIN32) else() find_package(Boost 1.71.0 COMPONENTS coroutine system date_time program_options filesystem timer REQUIRED ) endif() - +add_definitions("-DBOOST_BIND_GLOBAL_PLACEHOLDERS") # To suppress messages in later versions of boost, in version 1.76.0 there are internal conflicts in boost +add_definitions("-DBOOST_ALLOW_DEPRECATED_HEADERS") # To suppress messages in later versions of boost, in version 1.76.0 there are internal conflicts in boost if (NOT DEFINED Boost_VERSION_STRING) set(Boost_VERSION_STRING "${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}") endif()