Update compilerwarnings.cmake

Change -WError to -Werror
This commit is contained in:
McMassiveNZ
2022-12-06 23:33:03 +01:00
parent 619e41a1cb
commit f15d16ce11

View File

@@ -94,13 +94,13 @@ function(target_warnings_as_errors _target)
target_compile_options(
${_target}
PUBLIC
-WError
-Werror
)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(
${_target}
PUBLIC
-WError
-Werror
)
endif()
endfunction()