aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/kaitai-struct-cpp-stl-runtime/remove-werror.patch
blob: f35a2c510c0026801bb23e47506e552a4832a704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/Common.cmake b/Common.cmake
index 31d8116..f46cbc3 100644
--- a/Common.cmake
+++ b/Common.cmake
@@ -12,9 +12,9 @@ endif()
 #
 # This method was taken from https://www.pragmaticlinux.com/2022/07/enable-compiler-warnings-with-cmake/
 target_compile_options(${PROJECT_NAME} PRIVATE
-    $<$<CXX_COMPILER_ID:MSVC>:/W4 /WX>
+    $<$<CXX_COMPILER_ID:MSVC>:/W4>
     $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:
-        -Wall -Wextra -Wpedantic -Werror
+        -Wall -Wextra -Wpedantic
 
         # We're using the `long long` type intentionally. Although it's not part of C++98, in
         # practice it is usually supported even by ancient compilers with very limited C++11