Update compilerwarnings.cmake
Change -WError to -Werror
This commit is contained in:
@@ -94,13 +94,13 @@ function(target_warnings_as_errors _target)
|
|||||||
target_compile_options(
|
target_compile_options(
|
||||||
${_target}
|
${_target}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
-WError
|
-Werror
|
||||||
)
|
)
|
||||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
target_compile_options(
|
target_compile_options(
|
||||||
${_target}
|
${_target}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
-WError
|
-Werror
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
Reference in New Issue
Block a user