aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeOptions.txt
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2023-01-12 21:31:53 +0000
committerJoão Valverde <j@v6e.pt>2023-01-14 14:52:53 +0000
commit389e70722c5a623507d3a1c61f1de7b648f3c76d (patch)
treee7777b8cb44318b8f48c0043937c8e648dbca4b2 /CMakeOptions.txt
parentdd07fb5a15a3cae4f83d29418ef515bed40f658a (diff)
MSYS2: Disable -Werror by default
Diffstat (limited to 'CMakeOptions.txt')
-rw-r--r--CMakeOptions.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeOptions.txt b/CMakeOptions.txt
index c1863df2e4..94748f9c83 100644
--- a/CMakeOptions.txt
+++ b/CMakeOptions.txt
@@ -32,8 +32,6 @@ option(BUILD_dpauxmon "Build dpauxmon" ON)
option(BUILD_randpktdump "Build randpktdump" ON)
option(BUILD_wifidump "BUild wifidump" ON)
if(WIN32 AND NOT MINGW)
- # XXX - I don't think building etwdump is possible with MinGW-w64 as of
- # version 9.0 but I would like to be 100% certain.
option(BUILD_etwdump "Build etwdump" ON)
else()
option(BUILD_etwdump "Build etwdump" OFF)
@@ -51,7 +49,12 @@ option(BUILD_sharkd "Build sharkd" ON)
option(BUILD_mmdbresolve "Build MaxMind DB resolver" ON)
option(BUILD_fuzzshark "Build fuzzshark" OFF)
-option(ENABLE_WERROR "Treat warnings as errors" ON)
+if (USE_MSYSTEM)
+ # XXX Doesn't build cleanly yet with GCC.
+ option(ENABLE_WERROR "Treat warnings as errors" OFF)
+else()
+ option(ENABLE_WERROR "Treat warnings as errors" ON)
+endif()
# Debugging is enabled for "Debug" and "RelWithDebInfo" build types.
option(ENABLE_DEBUG "Enable debugging for all build configurations" OFF)
# UTF-8 debugging is enabled for "Debug" and "RelWithDebInfo" build types.