Template
Update compilerwarnings.cmake
Change -WError to -Werror
This commit is contained in:
1 parent
619e41a1cb
commit
f15d16ce11
1 file changed
+2
-2
@@ -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()
|
||||
Reference in new issue
Block a user