diff options
author | Joerg <JoergAtGithub@worldwartweb.com> | 2023-05-29 13:58:38 +0200 |
---|---|---|
committer | Joerg <JoergAtGithub@worldwartweb.com> | 2023-05-29 17:52:00 +0200 |
commit | 2daac8ef9fb259458ec26cbc552158720c9af9c0 (patch) | |
tree | 3a4fc0d45820e19f938e101e36ba50bbd9943d0a | |
parent | 52e58a8afb8217933d7f9e2751d8fb28cbfee41c (diff) |
Treat warnings on Windows as errors
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
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() |