Skip to content

Commit 3969070

Browse files
committed
Disable warning for deprecated builtins.
1 parent dc786f9 commit 3969070

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ project(
1212
LANGUAGES CXX C
1313
)
1414

15+
# Boost is using some deprecated built-ins which causes build errors when compiling foxy on mac.
16+
# For now disable the warnings for deprecated built-ins while using Apple's toolchains.
17+
add_compile_options(
18+
$<$<OR:$<C_COMPILER_ID:Clang>,$<C_COMPILER_ID:AppleClang>>:-Wno-deprecated-builtins>
19+
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-Wno-deprecated-builtins>
20+
)
21+
22+
1523
# Allow BOOST_ROOT to be set by CI without warnings.
1624
if (POLICY CMP0074)
1725
cmake_policy(SET CMP0074 NEW)

0 commit comments

Comments
 (0)