Skip to content

Commit

Permalink
cmake: set BOOST_NO_AUTO_PTR to fix c++17 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
selsta committed Oct 26, 2023
1 parent 5136974 commit df9f380
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit df9f380

Please sign in to comment.