Skip to content

Commit

Permalink
Restrict warnings to clang/gcc
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
  • Loading branch information
mjcarroll committed Jul 24, 2024
1 parent 93f0118 commit bb52cce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion graphics/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ target_link_libraries(${graphics_target}
)

# CDT does a few float comparisons that cause warnings
target_compile_options(${graphics_target} PRIVATE -Wno-float-equal)
target_compile_options(${graphics_target} PRIVATE
$<$<CXX_COMPILER_ID:GNU>: -Wno-switch-default -Wno-float-equal> # GCC
$<$<CXX_COMPILER_ID:Clang>: -Wno-switch-default -Wno-float-equal> # Clang
)

gz_build_tests(
TYPE UNIT
Expand Down

0 comments on commit bb52cce

Please sign in to comment.