From 53df127535f7b3302cd573faf33a3886a70812da Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 9 Feb 2025 23:01:51 -0800 Subject: [PATCH] [cmake] Suppress enum warning on all clang, not just Apple (#7771) --- cmake/modules/CompileWarnings.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/CompileWarnings.cmake b/cmake/modules/CompileWarnings.cmake index fd4f9294ba..cadc9fe02e 100644 --- a/cmake/modules/CompileWarnings.cmake +++ b/cmake/modules/CompileWarnings.cmake @@ -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 $<$:-Wno-fixed-enum-extension>) endif()