From df9f3806716461f016dcd709b450a5605aafbe78 Mon Sep 17 00:00:00 2001 From: selsta Date: Thu, 29 Jun 2023 21:31:01 +0200 Subject: cmake: set BOOST_NO_AUTO_PTR to fix c++17 compilation --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 085e628d3..8e5f5b48c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1077,6 +1077,7 @@ if (WIN32) endif() find_package(Boost 1.58 QUIET REQUIRED COMPONENTS ${BOOST_COMPONENTS}) add_definitions(-DBOOST_ASIO_ENABLE_SEQUENTIAL_STRAND_ALLOCATION) +add_definitions(-DBOOST_NO_AUTO_PTR) set(CMAKE_FIND_LIBRARY_SUFFIXES ${OLD_LIB_SUFFIXES}) if(NOT Boost_FOUND) -- cgit v1.2.3