diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-18 18:41:02 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-18 18:41:02 +0200 |
| commit | 4f01a2227410a9b2c5a7c026b498680a87115eef (patch) | |
| tree | 7499ec7862f7d4a5d44db8c97d41395eb3ab5d80 /CMakeLists.txt | |
| parent | upgrade cmake-common (diff) | |
| download | winapi-utf8-4f01a2227410a9b2c5a7c026b498680a87115eef.tar.gz winapi-utf8-4f01a2227410a9b2c5a7c026b498680a87115eef.zip | |
cmake: treat warnings as errors
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cfae03..814a81a 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) |
