diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-14 21:32:11 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-14 21:32:11 +0200 |
| commit | 095c951c7daeb06c7abb77522d404464ca921ffc (patch) | |
| tree | c89d04b7762a295e85c90be9e54e917c2f4456be | |
| parent | test: move stress test scripts to stress/ (diff) | |
| download | math-server-095c951c7daeb06c7abb77522d404464ca921ffc.tar.gz math-server-095c951c7daeb06c7abb77522d404464ca921ffc.zip | |
cmake: forgot to move common settings from common.cmake
Diffstat (limited to '')
| -rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 842b9df..895e6b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,14 @@ enable_testing() set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) +if(MSVC) + add_compile_options(/MP /W4) +else() + add_compile_options(-Wall -Wextra) +endif() + +add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX) + # AppVeyor builds w/ Visual Studio 2017 bombard me with stupid warnings otherwise: if(MSVC_VERSION GREATER_EQUAL "1910" AND MSVC_VERSION LESS "1920") add_definitions(/D_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING) |
