From f9a687a339b39e81c73f75ec3367862fbc2d2cee Mon Sep 17 00:00:00 2001 From: Adam Emerson Date: Tue, 11 Feb 2025 16:08:46 -0500 Subject: [PATCH] build: Pass `-DBOOST_ALLOW_DEPRECATED_HEADERS` to compiler Because Boost including its own deprecated headers is not our problem. Signed-off-by: Adam Emerson --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d1ff371d50a..fe161985aed 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -115,6 +115,9 @@ endif() add_compile_options($<$:-ftemplate-depth-1024>) +# Because Boost can't be bothered to not include its own deprecated headers +add_compile_options($<$:-DBOOST_ALLOW_DEPRECATED_HEADERS>) + CHECK_CXX_COMPILER_FLAG("-Wpessimizing-move" COMPILER_SUPPORTS_PESSIMIZING_MOVE) if(COMPILER_SUPPORTS_PESSIMIZING_MOVE) add_compile_options($<$:-Wpessimizing-move>) -- 2.47.3