From: Adam Emerson Date: Tue, 11 Feb 2025 21:08:46 +0000 (-0500) Subject: build: Pass `-DBOOST_ALLOW_DEPRECATED_HEADERS` to compiler X-Git-Tag: v20.3.0~302^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9a687a339b39e81c73f75ec3367862fbc2d2cee;p=ceph.git build: Pass `-DBOOST_ALLOW_DEPRECATED_HEADERS` to compiler Because Boost including its own deprecated headers is not our problem. Signed-off-by: Adam Emerson --- 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>)