Skip to content

Commit

Permalink
[cmake] Suppress enum warning on all clang, not just Apple
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Feb 9, 2025
1 parent b60b2b6 commit 56a6a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/CompileWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ macro(wpilib_target_warnings target)

# Suppress warning "enumeration types with a fixed underlying type are a
# Clang extension"
if(APPLE)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(${target} PRIVATE $<$<COMPILE_LANGUAGE:C>:-Wno-fixed-enum-extension>)
endif()

Expand Down

0 comments on commit 56a6a4b

Please sign in to comment.