2022-01-27 04:06:01 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index b72bd41ed..e916728a8 100644
|
2021-08-05 04:27:40 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-01-27 04:06:01 +08:00
|
|
|
@@ -123,11 +123,8 @@ if (${warnings_as_errors})
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /wd4232")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4 /wd4232")
|
|
|
|
# Make warning as error
|
|
|
|
- add_definitions(/WX)
|
|
|
|
else()
|
|
|
|
# Make warning as error
|
|
|
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
|
|
|
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
|
|
|
endif()
|
2021-08-05 04:27:40 +08:00
|
|
|
endif()
|
|
|
|
|