]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
build: Pass `-DBOOST_ALLOW_DEPRECATED_HEADERS` to compiler 61084/head
authorAdam Emerson <aemerson@redhat.com>
Tue, 11 Feb 2025 21:08:46 +0000 (16:08 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 12 Mar 2025 14:28:22 +0000 (10:28 -0400)
Because Boost including its own deprecated headers is not our problem.

Signed-off-by: Adam Emerson <aemerson@redhat.com>
src/CMakeLists.txt

index d1ff371d50a39d33514c33adabc4ef86a0e22c48..fe161985aede22fa876b61cea92b0af7943d5739 100644 (file)
@@ -115,6 +115,9 @@ endif()
 
 add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-ftemplate-depth-1024>)
 
+# Because Boost can't be bothered to not include its own deprecated headers
+add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-DBOOST_ALLOW_DEPRECATED_HEADERS>)
+
 CHECK_CXX_COMPILER_FLAG("-Wpessimizing-move" COMPILER_SUPPORTS_PESSIMIZING_MOVE)
 if(COMPILER_SUPPORTS_PESSIMIZING_MOVE)
   add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wpessimizing-move>)