File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ if (NIGIRI_LINT)
3838 include (cmake/clang-tidy.cmake)
3939endif ()
4040
41+ set (CMAKE_COMPILE_WARNING_AS_ERROR ON )
4142if ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "Clang" )
4243 set (nigiri-compile-options
4344 -Weverything
@@ -66,20 +67,14 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
6667 -Wno-ctad-maybe-unsupported
6768 -Wno-nrvo
6869 -Wno-thread-safety-negative
69- -Wno-unused-private -field
70- -Werror)
70+ -Wno-unused-private -field)
7171elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "AppleClang" )
72- set (nigiri-compile-options -Wall -Wextra -Werror)
73- elseif (MSVC )
74- set (nigiri-compile-options /WX)
75- else ()
72+ set (nigiri-compile-options -Wall -Wextra)
73+ elseif (NOT MSVC )
7674 set (nigiri-compile-options
7775 -Wall
7876 -Wextra
7977 -Wno-maybe-uninitialized)
80- if (NOT CMAKE_CROSSCOMPILING )
81- set (nigiri-compile-options ${nigiri-compile-options } -Werror)
82- endif ()
8378endif ()
8479
8580
You can’t perform that action at this time.
0 commit comments