diff --git a/apriltag/CMakeLists.txt b/apriltag/CMakeLists.txt index d049b315c1e..f60de2b22b0 100644 --- a/apriltag/CMakeLists.txt +++ b/apriltag/CMakeLists.txt @@ -133,7 +133,11 @@ if(MSVC) else() target_compile_options( apriltag - PRIVATE -Wno-sign-compare -Wno-gnu-zero-variadic-macro-arguments -Wno-type-limits -Wno-format-nonliteral + PRIVATE + -Wno-sign-compare + -Wno-gnu-zero-variadic-macro-arguments + -Wno-type-limits + -Wno-format-nonliteral ) endif() diff --git a/cmake/modules/CompileWarnings.cmake b/cmake/modules/CompileWarnings.cmake index 5b6f945e1a0..0b86aea7351 100644 --- a/cmake/modules/CompileWarnings.cmake +++ b/cmake/modules/CompileWarnings.cmake @@ -15,12 +15,7 @@ macro(wpilib_target_warnings target) else() target_compile_options( ${target} - PRIVATE - /wd4146 - /wd4244 - /wd4251 - /wd4267 - /WX + PRIVATE /wd4146 /wd4244 /wd4251 /wd4267 /WX ) endif()