cmake: set BOOST_NO_AUTO_PTR to fix c++17 compilation

This commit is contained in:
selsta 2023-06-29 21:31:01 +02:00
parent 5136974da9
commit df9f380671
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
1 changed files with 1 additions and 0 deletions

View File

@ -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)