vcpkg/ports/libprotobuf-mutator/werror.patch

14 lines
489 B
Diff
Raw Normal View History

2024-11-20 10:55:42 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2e4b78e..4541d17 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -84,7 +84,7 @@ unset(CMAKE_REQUIRED_FLAGS)
check_cxx_compiler_flag(-Wstring-conversion LIB_PROTO_MUTATOR_HAS_WSTRING_CONVERSION)
if (NOT MSVC)
- set(EXTRA_FLAGS "-fno-exceptions -Werror -Wall")
+ set(EXTRA_FLAGS "-fno-exceptions")
if (LIB_PROTO_MUTATOR_HAS_WSTRING_CONVERSION)
set(EXTRA_FLAGS "${EXTRA_FLAGS} -Wstring-conversion")
endif()