From a8edea4da6dfa045a2b1ac3a541ca6a6dfaf43b6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 18 Jun 2026 19:25:13 +0200 Subject: cmake: treat warnings as errors --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 09cdb18..8814074 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,9 +10,9 @@ set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED TRUE) if (MSVC) - add_compile_options(/MP /W4) + add_compile_options(/MP /W4 /WX) else() - add_compile_options(-Wall -Wextra) + add_compile_options(-Wall -Wextra -pedantic -Werror) endif() add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX) -- cgit v1.3