Skip to content

Commit f9a687a

Browse files
committed
build: Pass -DBOOST_ALLOW_DEPRECATED_HEADERS to compiler
Because Boost including its own deprecated headers is not our problem. Signed-off-by: Adam Emerson <[email protected]>
1 parent b446290 commit f9a687a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ endif()
115115

116116
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-ftemplate-depth-1024>)
117117

118+
# Because Boost can't be bothered to not include its own deprecated headers
119+
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-DBOOST_ALLOW_DEPRECATED_HEADERS>)
120+
118121
CHECK_CXX_COMPILER_FLAG("-Wpessimizing-move" COMPILER_SUPPORTS_PESSIMIZING_MOVE)
119122
if(COMPILER_SUPPORTS_PESSIMIZING_MOVE)
120123
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wpessimizing-move>)

0 commit comments

Comments
 (0)