mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Also don't inherit compile warnings from wpiutil There's not a good way to disable inherited compiler flags.
8 lines
278 B
CMake
8 lines
278 B
CMake
macro(wpilib_target_warnings target)
|
|
if(NOT MSVC)
|
|
target_compile_options(${target} PRIVATE -Wall -pedantic -Wextra -Werror -Wno-unused-parameter)
|
|
else()
|
|
target_compile_options(${target} PRIVATE /wd4244 /wd4267 /wd4146 /WX /wd4996)
|
|
endif()
|
|
endmacro()
|