diff --git a/cmake/modules/CompileWarnings.cmake b/cmake/modules/CompileWarnings.cmake index 2d49ba9852f..174fdb8d062 100644 --- a/cmake/modules/CompileWarnings.cmake +++ b/cmake/modules/CompileWarnings.cmake @@ -5,6 +5,10 @@ macro(wpilib_target_warnings target) target_compile_options(${target} PRIVATE /wd4146 /wd4244 /wd4251 /wd4267 /WX /D_CRT_SECURE_NO_WARNINGS ${WPILIB_TARGET_WARNINGS}) endif() + if(APPLE) + target_compile_options(${target} PRIVATE -Wno-fixed-enum-extension) + endif() + # Suppress C++-specific OpenCV warning; C compiler rejects it with an error # https://github.com/opencv/opencv/issues/20269 if(UNIX AND NOT APPLE)