[cmake] Suppress enum warning on all clang, not just Apple (#7771)

This commit is contained in:
Peter Johnson
2025-02-09 23:01:51 -08:00
committed by GitHub
parent d2611d4ad5
commit 53df127535

View File

@@ -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()