From 2daac8ef9fb259458ec26cbc552158720c9af9c0 Mon Sep 17 00:00:00 2001 From: Joerg Date: Mon, 29 May 2023 13:58:38 +0200 Subject: Treat warnings on Windows as errors --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 94425e2646..0056889e5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1293,7 +1293,8 @@ if(MSVC) if(WARNINGS_PEDANTIC) target_compile_options(mixxx-lib PUBLIC /W4) else() - target_compile_options(mixxx-lib PUBLIC /W3) + # Warning Level 3 (production quality) / Treat Warnings as Errors + target_compile_options(mixxx-lib PUBLIC /W3 /WX) target_compile_definitions(mixxx-lib PUBLIC _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING _CRT_SECURE_NO_WARNINGS) endif() else() -- cgit v1.2.3